diff options
Diffstat (limited to 'bot.lua')
-rw-r--r-- | bot.lua | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -243,7 +243,6 @@ function furrybot.commands.choose(name, ...) furrybot.error_message(name, "Not enough options") end end -furrybot.commands["8ball"] = furrybot.commands.choose function furrybot.commands.dicksize(name, target) target = target or name @@ -298,6 +297,13 @@ function furrybot.commands.joke(name, first, last) end) end +function furrybot.commands.question(name) + furrybot.json_http_request("https://8ball.delegator.com/magic/JSON/anything", name, function(data) + furrybot.ping_message(name, data.magic.answer, furrybot.colors.fun) + end) +end +furrybot.commands["8ball"] = furrybot.commands.question + -- economy function furrybot.commands.money(name, target) target = target or name |