mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 06:42:51 +02:00
23
This commit is contained in:
@@ -6,13 +6,13 @@ module.exports = class LotteryCommand extends Command {
|
||||
name: 'lottery',
|
||||
group: 'games',
|
||||
memberName: 'lottery',
|
||||
description: '1 in 100 chance of winning. Winners get... The feeling of winning?'
|
||||
description: 'Attempt to win the lottery, with a 1 in 100 chance of winning.'
|
||||
});
|
||||
}
|
||||
|
||||
run(msg) {
|
||||
const lottery = Math.floor(Math.random() * 100) + 1;
|
||||
if (lottery === 1) return msg.say(`Wow ${msg.author.username}! You actually won! Great job!`);
|
||||
else return msg.say(`Nope, sorry ${msg.author.username}, you lost.`);
|
||||
if (lottery === 1) return msg.reply(`Wow! You actually won! Great job!`);
|
||||
else return msg.reply(`Nope, sorry, you lost.`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user