mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 06:37:32 +02:00
return and await
This commit is contained in:
@@ -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.`);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user