Added DevMode and MOTD toggles
This commit is contained in:
parent
312a73a7c3
commit
d70f4ab2ce
@ -60,6 +60,26 @@ class Onequestionmark {
|
||||
Sys.println("Shutdown command received from botowner, exiting.");
|
||||
shutdown();
|
||||
}
|
||||
case "devmode":
|
||||
if (m.author.id == settings.botowner) {
|
||||
if (!settings.devmode) {
|
||||
settings.devmode = true;
|
||||
m.reply({content:"DevMode enabled."}, false);
|
||||
} else {
|
||||
settings.devmode = false;
|
||||
m.reply({content:"DevMode disabled."}, false);
|
||||
}
|
||||
}
|
||||
case "motd":
|
||||
if (m.author.id == settings.botowner) {
|
||||
if (!settings.motd.channels.contains(m.channel_id)) {
|
||||
settings.motd.channels.push(m.channel_id);
|
||||
m.reply({content:'MOTD has been enabled for <#${m.channel_id}>'}, false);
|
||||
} else {
|
||||
settings.motd.channels.remove(m.channel_id);
|
||||
m.reply({content:'MOTD has been disabled for <#${m.channel_id}>'}, false);
|
||||
}
|
||||
}
|
||||
// System for WIP commands that only work in testing server
|
||||
case "wipcommand":
|
||||
if (m.guild_id == settings.devserver) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user