]> git.lizzy.rs Git - furrybot-discord.git/blobdiff - operator.js
Add nickname command
[furrybot-discord.git] / operator.js
index fda9e0580bd8c56b55ad5abb009f9c0e8cdc1c12..92af5d82bdd54b470e09f2f835275208ace1e0f0 100644 (file)
@@ -7,4 +7,10 @@ module.exports = {
        ignore: common.listChangeCommand("ignored", "ignored", true),
        unignore: common.listChangeCommand("ignored", "ignored", false),
        ignorelist: common.listCommand("ignored users", "ignored"),
+       nickname: {
+               operator: true,
+               help: "Change the bot's username",
+               params: "<username>",
+               func: (msg, name) => msg.guild.me.setNickname(name.join(" ")),
+       }
 }