summon edits

This commit is contained in:
Dalton
2018-12-06 22:53:31 -08:00
parent fd36596b71
commit 3147845071

7
bot.js
View File

@@ -484,12 +484,15 @@ client.on('message', message => {
message.channel.send((Math.floor(Math.random() * 2) === 0) ? subredditRequest('hentaibondage') : imgurRequest('hentaibondage', 5));
break;
case 'myid':
message.channel.reply("Your id is " + message.author);
break;
case 'summon':
try {
// Dalton's image summon command.
// Checks for banned author's using a hard coded list of discord ids.
// Also rudely cleans garbage entries.
let banned_authors = ['143999140878090240'];
let banned_authors = ['steven once i find his id.'];
if (banned_authors.includes(message.author)) {
let messageSplit = message.content.substring(2).split(' ');
@@ -506,7 +509,7 @@ client.on('message', message => {
message.channel.send(redditResponse);
}
// Missing Argumentg
// Missing Argument
} else {
message.reply("wut do i summon?");
}