mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 18:05:01 +02:00
Updates
This commit is contained in:
@@ -6,12 +6,12 @@ module.exports = class LotteryCommand extends Command {
|
||||
name: 'lottery',
|
||||
group: 'games',
|
||||
memberName: 'lottery',
|
||||
description: 'Attempt to win the lottery, with a 1 in 100 chance of winning.'
|
||||
description: 'Attempt to win the lottery, with a 1 in 1000 chance of winning.'
|
||||
});
|
||||
}
|
||||
|
||||
run(msg) {
|
||||
const lottery = Math.floor(Math.random() * 100) + 1;
|
||||
const lottery = Math.floor(Math.random() * 1000) + 1;
|
||||
if (lottery === 1) return msg.reply('Nice job! 10/10! You deserve some cake!');
|
||||
return msg.reply('Nope, sorry, you lost.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user