|
|
|
@ -5,7 +5,9 @@ module.exports = {
|
|
|
|
|
name: 'joint',
|
|
|
|
|
description: 'Send a random weed-themed phrase.',
|
|
|
|
|
usage: '.joint',
|
|
|
|
|
alias: ['bong', 'blunt', 'bowl', 'pipe', 'dab', 'vape', 'dabs', 'shatter', 'edible', 'edibles', 'doobie', 'spliff', 'gummy', 'gummies', 'hash', 'toke', 'big doinks'],
|
|
|
|
|
alias: ['bong', 'blunt', 'bowl', 'pipe', 'dab', 'vape', 'dabs', 'shatter', 'edible', 'edibles', 'doobie', 'spliff', 'gummy', 'gummies', 'hash', 'toke', 'big doinks',
|
|
|
|
|
'drink', 'shot', 'shots', 'beer', 'beers', 'brew', 'brews', 'liquor', 'cocktail', 'cocktails', 'wine', 'wines', 'whiskey', 'whiskies', 'vodka', 'vodkas', 'rum', 'rums', 'cider', 'ciders',
|
|
|
|
|
],
|
|
|
|
|
execute(message, commandData) {
|
|
|
|
|
let joints = [];
|
|
|
|
|
// Create a simple array of the joint texts
|
|
|
|
@ -24,7 +26,7 @@ module.exports = {
|
|
|
|
|
joint = joints[randIndex];
|
|
|
|
|
}
|
|
|
|
|
// Send the joint
|
|
|
|
|
message.reply(`${joints[randIndex]} ${emoji.joint}`);
|
|
|
|
|
message.channel.send(`${joints[randIndex]} ${emoji.joint}`);
|
|
|
|
|
// Check how full the roach collection is
|
|
|
|
|
if (message.client.roaches.size / joints.length >= 0.85) {
|
|
|
|
|
// If the roach collection is 85% of the joints collection
|
|
|
|
@ -34,4 +36,4 @@ module.exports = {
|
|
|
|
|
// Add the joint to the roach collection
|
|
|
|
|
message.client.roaches.set(joint, "baked");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|