diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-03-10 13:27:51 +0100 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-03-10 13:27:51 +0100 |
commit | 2dd7a565f9cc562678d103ba05cd1a6f61590d66 (patch) | |
tree | 07eb80e8ec70ce1adebd80b5a2d40595d28d61c8 /bot.lua | |
parent | 495aa5842fcbd4838f4a1c4420bdbd8353fc7ea8 (diff) | |
download | furrybot-2dd7a565f9cc562678d103ba05cd1a6f61590d66.tar.xz |
Update 8ball command
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 |