Smash or Pass Command

This commit is contained in:
Dragon Fire
2020-03-21 16:28:10 -04:00
parent 34e586ae58
commit 650280481d
4 changed files with 33 additions and 3 deletions
@@ -6,7 +6,7 @@ module.exports = class DickCommand extends Command {
super(client, {
name: 'dick',
aliases: ['dick-size', 'penis', 'penis-size', 'pee-pee', 'pee-pee-size', 'cock', 'cock-size'],
group: 'analyze',
group: 'seeded',
memberName: 'dick',
description: 'Determines your dick size.',
nsfw: true,
+29
View File
@@ -0,0 +1,29 @@
const Command = require('../../structures/Command');
const { MersenneTwister19937, bool } = require('random-js');
module.exports = class SmashOrPassCommand extends Command {
constructor(client) {
super(client, {
name: 'smash-or-pass',
aliases: ['pass-or-smash', 'smash-pass', 'pass-smash'],
group: 'seeded',
memberName: 'smash-or-pass',
description: 'Determines if a user is worthy of a smash or a pass.',
args: [
{
key: 'user',
prompt: 'What user do you want to check?',
type: 'user',
default: msg => msg.author
}
]
});
}
run(msg, { user }) {
if (user.id === this.client.user.id) return msg.reply('Obviously smash, Google me.');
const random = MersenneTwister19937.seed(user.id);
const smashOrPass = bool()(random);
return msg.reply(smashOrPass ? 'Smash, I\'d definitely smash.' : 'Hard pass. Yuck.');
}
};