return and await

This commit is contained in:
Daniel Odendahl Jr
2017-03-23 13:16:59 +00:00
parent cea110ce4b
commit 7c0a39ec5c
83 changed files with 295 additions and 264 deletions
+2 -2
View File
@@ -18,10 +18,10 @@ module.exports = class LotteryCommand extends commando.Command {
console.log(`[Command] ${message.content}`);
let lotteryNumber = ['Winner'][Math.floor(Math.random() * 100)];
if (lotteryNumber === "Winner") {
message.channel.send(`Wow ${message.author.username}! You actually won! Great job!`);
return message.channel.send(`Wow ${message.author.username}! You actually won! Great job!`);
}
else {
message.channel.send(`Nope, sorry ${message.author.username}, you lost.`);
return message.channel.send(`Nope, sorry ${message.author.username}, you lost.`);
}
}
};