mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-10 19:04:42 +02:00
Smash or Pass Command
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
const Command = require('../../structures/Command');
|
||||
const { MersenneTwister19937, integer } = require('random-js');
|
||||
|
||||
module.exports = class DickCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'dick',
|
||||
aliases: ['dick-size', 'penis', 'penis-size', 'pee-pee', 'pee-pee-size', 'cock', 'cock-size'],
|
||||
group: 'seeded',
|
||||
memberName: 'dick',
|
||||
description: 'Determines your dick size.',
|
||||
nsfw: true,
|
||||
args: [
|
||||
{
|
||||
key: 'user',
|
||||
prompt: 'What user do you want to determine the dick size of?',
|
||||
type: 'user',
|
||||
default: msg => msg.author
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
run(msg, { user }) {
|
||||
const clientAuthor = user.id === this.client.user.id;
|
||||
const random = MersenneTwister19937.seed(clientAuthor ? msg.author.id : user.id);
|
||||
const length = integer(0, 20)(random);
|
||||
return msg.reply(`8${'='.repeat(clientAuthor ? length + 1 : length)}D`);
|
||||
}
|
||||
};
|
||||
@@ -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.');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user