didn't understand that login promise thing so i removed it

This commit is contained in:
Dalton
2018-12-11 21:02:41 -08:00
parent 2aee03460d
commit 49c6ee87b6

9
bot.js
View File

@@ -433,9 +433,9 @@ client.on('message', message => {
message.reply(noQuestion()); message.reply(noQuestion());
} }
break; break;
case 'crapsroll': case 'crapsroll':
message.channel.send(message.author + ' rolls two dice. They roll **' + numberRoll(1, 6) + '** and **' + numberRoll(1, 6) + '**.'); message.channel.send(message.author + ' rolls two dice. They roll **' + numberRoll(1, 6) + '** and **' + numberRoll(1, 6) + '**.');
break; break;
case 'roll': case 'roll':
let roll_content = message.content.substring(2).split(' '); let roll_content = message.content.substring(2).split(' ');
if (roll_content[1] !== undefined && roll_content[1].length > 0) // ranged roll if (roll_content[1] !== undefined && roll_content[1].length > 0) // ranged roll
@@ -673,5 +673,4 @@ client.on('message', message => {
; ;
// login // login
client.login(auth.token) client.login(auth.token);
.catch(error => console.log(error));