Try and fix author bug?

This commit is contained in:
Amish Shah
2016-09-01 14:50:40 +01:00
parent aee547d28e
commit 552d603782
3 changed files with 9 additions and 7 deletions

View File

@@ -112,7 +112,7 @@ client.on('message', msg => {
msg.channel.sendMessage('```' + msg.content + '```');
}
if (msg.content.startsWith('?eval') && msg.author.id === '66564597481480192') {
if (msg.content.startsWith('#eval') && msg.author.id === '66564597481480192') {
try {
const com = eval(msg.content.split(" ").slice(1).join(" "));
msg.channel.sendMessage('```\n' + com + '```');