From 5fa566734ecd144d3bdc203a7ff3b131aa7dfadf Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Sat, 5 Mar 2022 21:33:19 +0100 Subject: Implement operators --- operator.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'operator.js') diff --git a/operator.js b/operator.js index 1c01e28..fda9e05 100644 --- a/operator.js +++ b/operator.js @@ -1,9 +1,10 @@ -let operators, ignored +const common = require("./common.js") -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") +module.exports = { + op: common.listChangeCommand("oped", "operators", true), + deop: common.listChangeCommand("oped", "operators", false), + oplist: common.listCommand("operators", "operators"), + ignore: common.listChangeCommand("ignored", "ignored", true), + unignore: common.listChangeCommand("ignored", "ignored", false), + ignorelist: common.listCommand("ignored users", "ignored"), +} -- cgit v1.2.3