aboutsummaryrefslogtreecommitdiff
path: root/operator.lua
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2022-03-05 19:18:38 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2022-03-05 19:18:38 +0100
commita25d1acd1d702287b6ca095a4079cf3f898cbe89 (patch)
tree552f6ccc15a082f9d662e7ff58bf2f954c0451e5 /operator.lua
downloadfurrybot-discord-a25d1acd1d702287b6ca095a4079cf3f898cbe89.tar.xz
Initial commit
Diffstat (limited to 'operator.lua')
-rw-r--r--operator.lua28
1 files changed, 28 insertions, 0 deletions
diff --git a/operator.lua b/operator.lua
new file mode 100644
index 0000000..4503374
--- /dev/null
+++ b/operator.lua
@@ -0,0 +1,28 @@
+local http, env, storage
+local C = minetest.get_color_escape_sequence
+
+furrybot.commands.reload = {
+ operator = true,
+ func = function()
+ furrybot.reload()
+ end,
+}
+
+furrybot.commands.disconnect = {
+ operator = true,
+ func = function()
+ minetest.disconnect()
+ end,
+}
+
+furrybot.list_change_command("op", "operators", "an operator", true)
+furrybot.list_change_command("deop", "operators", "an operator", nil)
+furrybot.list_command("oplist", "operators", "operators")
+
+furrybot.list_change_command("ignore", "ignored", "ignored", true)
+furrybot.list_change_command("unignore", "ignored", "ignored", nil)
+furrybot.list_command("ignorelist", "ignored", "ignored players")
+
+return function(_http, _env, _storage)
+ http, env, storage = _http, _env, _storage
+end