From a25d1acd1d702287b6ca095a4079cf3f898cbe89 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Sat, 5 Mar 2022 19:18:38 +0100 Subject: Initial commit --- operator.lua | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 operator.lua (limited to 'operator.lua') 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 -- cgit v1.2.3