This commit is contained in:
Daniel Odendahl Jr
2017-04-20 20:31:36 +00:00
parent b2b9ab9d73
commit de8827e0e5
+4 -1
View File
@@ -22,6 +22,9 @@ module.exports = class EasterEggCommand extends Command {
return true; return true;
} }
return 'Nope, that\'s not a valid easter egg. Try again!'; return 'Nope, that\'s not a valid easter egg. Try again!';
},
parse: text => {
return text.toLowerCase();
} }
}] }]
}); });
@@ -32,6 +35,6 @@ module.exports = class EasterEggCommand extends Command {
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return; if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
} }
const { tag } = args; const { tag } = args;
return message.say(eastereggs[tag.toLowerCase()]); return message.say(eastereggs[tag]);
} }
}; };