aboutsummaryrefslogtreecommitdiff
path: root/operator.js
blob: 58f6a40b7d20fa9bf7f4f6f6846e3e44b675ac11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const common = require("./common.js")

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"),
	nickname: {
		operator: true,
		help: "Change the bot's username",
		params: "<username>",
		func: (msg, name) => msg.guild.me.setNickname(name.join(" ")),
	},
	pfp: {
		operator: true,
		help: "Change the bot's pfp",
		params: "<pfp>",
		func: (msg, pfp) => msg.guild.me.user.setAvatar(pfp.join(" ")),
	},
}