This commit is contained in:
Daniel Odendahl Jr
2017-04-30 22:56:59 +00:00
parent 83e990ae1c
commit 877f720cfc
105 changed files with 460 additions and 461 deletions
+3 -3
View File
@@ -10,10 +10,10 @@ module.exports = class LotteryCommand extends Command {
});
}
run(message) {
run(msg) {
const lottery = Math.floor(Math.random() * 100) + 1;
if (lottery < 99)
return message.say(`Nope, sorry ${message.author.username}, you lost.`);
return message.say(`Wow ${message.author.username}! You actually won! Great job!`);
return msg.say(`Nope, sorry ${msg.author.username}, you lost.`);
return msg.say(`Wow ${msg.author.username}! You actually won! Great job!`);
}
};