mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 01:57:54 +02:00
msg
This commit is contained in:
@@ -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!`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user