]> git.lizzy.rs Git - furrybot-discord.git/commitdiff
Add nickname command
authorElias Fleckenstein <eliasfleckenstein@web.de>
Sun, 6 Mar 2022 15:34:51 +0000 (16:34 +0100)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Sun, 6 Mar 2022 15:34:51 +0000 (16:34 +0100)
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(" ")),
+       }
 }