]> git.lizzy.rs Git - furrybot-discord.git/blob - operator.js
Add bad apple
[furrybot-discord.git] / operator.js
1 const common = require("./common.js")
2
3 module.exports = {
4         op: common.listChangeCommand("oped", "operators", true),
5         deop: common.listChangeCommand("oped", "operators", false),
6         oplist: common.listCommand("operators", "operators"),
7         ignore: common.listChangeCommand("ignored", "ignored", true),
8         unignore: common.listChangeCommand("ignored", "ignored", false),
9         ignorelist: common.listCommand("ignored users", "ignored"),
10         nickname: {
11                 operator: true,
12                 help: "Change the bot's username",
13                 params: "<username>",
14                 func: (msg, name) => msg.guild.me.setNickname(name.join(" ")),
15         },
16         pfp: {
17                 operator: true,
18                 help: "Change the bot's pfp",
19                 params: "<pfp>",
20                 func: (msg, pfp) => msg.guild.me.user.setAvatar(pfp.join(" ")),
21         },
22 }