From 0ae4c9a3d98876ea4c25c9ac19e07b0f268a0865 Mon Sep 17 00:00:00 2001 From: = Date: Mon, 19 Jul 2021 15:20:59 -0400 Subject: [PATCH] Variable joint responses --- commands/joint.js | 4 +++- src/strings.json | 13 +++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/commands/joint.js b/commands/joint.js index 84651eb..cd43061 100644 --- a/commands/joint.js +++ b/commands/joint.js @@ -1,9 +1,11 @@ const { emoji } = require('../config.json'); +const { weed } = require('../src/strings.json'); module.exports = { name: 'joint', description: 'Pass the joint!', execute(message, args) { - message.channel.send('It\'s dangerous to go alone... take this: ' + emoji.joint); + const randIndex = Math.floor(Math.random() * weed.length); + message.channel.send(`${weed[randIndex]} ${emoji.joint}`); } } \ No newline at end of file diff --git a/src/strings.json b/src/strings.json index e69de29..b09423d 100644 --- a/src/strings.json +++ b/src/strings.json @@ -0,0 +1,13 @@ +{ + "weed": [ + "It's dangerous to go alone, take this", + "Dave's not here, man", + "I was gonna clean my room, but then I got high", + "When in doubt, smoke it out", + "I smoke two joints before I smoke two joints, and then I smoke two more", + "Today's forecast is cloudy with a chance of munchies", + "You're gonna be doing a lot of doobie rollin' when you're living in a ran down by the river!", + "You'll have plenty of time to live in a van down by the river... when you're living in a van down by the river!", + "Roll, roll, roll my joint, pick out the seeds and stems" + ] +} \ No newline at end of file