summaryrefslogtreecommitdiff
path: root/bullshit.lua
diff options
context:
space:
mode:
Diffstat (limited to 'bullshit.lua')
-rw-r--r--bullshit.lua13
1 files changed, 8 insertions, 5 deletions
diff --git a/bullshit.lua b/bullshit.lua
index aa53d73..227f58a 100644
--- a/bullshit.lua
+++ b/bullshit.lua
@@ -53,11 +53,14 @@ END {
}
]]
-function furrybot.commands.bullshit(name)
- local pf = env.io.popen("awk '" .. bullshit_code .. "' clientmods/furrybot/bullshit", "r")
- local bullshit = pf:read("*a")
- furrybot.ping_message(name, bullshit:sub(1, #bullshit - 2), furrybot.colors.system)
-end
+furrybot.commands.bullshit = {
+ help = "Output some random bullshit (ported from the plan9front system)",
+ func = function(name)
+ local pf = env.io.popen("awk '" .. bullshit_code .. "' clientmods/furrybot/bullshit", "r")
+ local bullshit = pf:read("*a")
+ furrybot.send(bullshit:sub(1, #bullshit - 2), furrybot.colors.system)
+ end,
+}
return function(_http, _env, _storage)
http, env, storage = _http, _env, _storage