This commit is contained in:
Andrew Lee 2017-11-26 13:57:26 -05:00
parent a38790becf
commit 4a6ef8873f

25
bot.js
View file

@ -990,20 +990,6 @@ function messageChecker(oldMessage, newMessage) {
}
commandProcessed = true;
break;
case "help":
var helpEmbed = new Discord.RichEmbed()
.setTitle("AstrelMod Help Contents")
.setDescription("Here are some things you can try. My prefix is either `mod:` or `bot:`")
.addField("Normal", "time\nclock\nnick\nsuggest\nabout\ncopyright\nlicense\nwarranty\ncontribute\nping\npong", true)
.addField("Mod Only", "mod [on|off]\nfilter [on|off]\nprepchat\ndeal\nrm\nuinfo\nrtid\nclock\n*panic*\ncancel\nhelp", true)
.setColor(0xfceb00)
.setFooter("Admin only commands depicted by *italics*")
message.channel.sendMessage(helpEmbed)
commandProcessed = true;
break;
case "pong":
switch (Math.floor(Math.random() * 1000) % 5) {
case 0:
@ -1031,6 +1017,17 @@ function messageChecker(oldMessage, newMessage) {
message.delete();
commandProcessed = true;
break;
case "help":
var helpEmbed = new Discord.RichEmbed()
.setTitle("AstrelMod Help Contents")
.setDescription("Here are some things you can try. My prefix is either `mod:` or `bot:`")
.addField("Normal", "time\nclock\nnick\nsuggest\nabout\ncopyright\nlicense\nwarranty\ncontribute\nping\npong", true)
.addField("Mod Only", "mod [on|off]\nfilter [on|off]\nprepchat\ndeal\nrm\nuinfo\nrtid\nclock\n*panic*\ncancel\nhelp", true)
.setColor(0xfceb00)
.setFooter("Admin only commands depicted by *italics*")
message.channel.sendMessage(helpEmbed)
commandProcessed = true;
break;
case "oldhelp":
var helpMessage = "Here are some things you can try:\n```\n" +
"time [tz] Gets the time at UTC +00:00.\n" +