didn't understand that login promise thing so i removed it
This commit is contained in:
9
bot.js
9
bot.js
@@ -433,9 +433,9 @@ client.on('message', message => {
|
||||
message.reply(noQuestion());
|
||||
}
|
||||
break;
|
||||
case 'crapsroll':
|
||||
message.channel.send(message.author + ' rolls two dice. They roll **' + numberRoll(1, 6) + '** and **' + numberRoll(1, 6) + '**.');
|
||||
break;
|
||||
case 'crapsroll':
|
||||
message.channel.send(message.author + ' rolls two dice. They roll **' + numberRoll(1, 6) + '** and **' + numberRoll(1, 6) + '**.');
|
||||
break;
|
||||
case 'roll':
|
||||
let roll_content = message.content.substring(2).split(' ');
|
||||
if (roll_content[1] !== undefined && roll_content[1].length > 0) // ranged roll
|
||||
@@ -673,5 +673,4 @@ client.on('message', message => {
|
||||
;
|
||||
|
||||
// login
|
||||
client.login(auth.token)
|
||||
.catch(error => console.log(error));
|
||||
client.login(auth.token);
|
||||
|
Reference in New Issue
Block a user