Add penis size command to bot

Add seeded-rand as dependency
This commit is contained in:
SileNce5k 2021-07-06 15:15:49 +02:00
parent 63f28e4575
commit b560090cc0
No known key found for this signature in database
GPG key ID: C507260E7F2583AD
3 changed files with 32 additions and 0 deletions

20
commands/penissize.js Normal file
View file

@ -0,0 +1,20 @@
const Srand = require('seeded-rand');
module.exports = {
name: 'penissize', // Keep it to one word
description: 'Get your penis size',
execute({message, args}) { //parameters you can use for netload: message, args, client, prefix
let info;
if (!args[0]) {
info = message.author.id;
} else {
info = parseMention(args[0], message.guild);
}
const rnd = new Srand();
rnd.seed(parseInt(info))
let penisSize = rnd.inRange(1, 45).toFixed(2)
let penisSizeInches = (penisSize * 0.3937008).toFixed(2);
message.channel.send(`Your penis size is ${penisSize} cm, or ${penisSizeInches} inches`);
}
};