From 212d9586da44c1eb568324c47abbf07288488290 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Mon, 9 Oct 2017 20:47:12 +0000 Subject: [PATCH] Revert "Beep" This reverts commit 35d25f761eb4620e02ffc16c521bab169e0f9b2c. --- commands/random-res/8-ball.js | 6 +++++- commands/random-res/magic-conch.js | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/commands/random-res/8-ball.js b/commands/random-res/8-ball.js index 7d4422a5..3c175126 100644 --- a/commands/random-res/8-ball.js +++ b/commands/random-res/8-ball.js @@ -1,4 +1,5 @@ const { Command } = require('discord.js-commando'); +const { stripIndents } = require('common-tags'); const answers = require('../../assets/json/8-ball'); module.exports = class EightBallCommand extends Command { @@ -20,6 +21,9 @@ module.exports = class EightBallCommand extends Command { } run(msg, { question }) { - return msg.say(`🎱 ${answers[Math.floor(Math.random() * answers.length)]} 🎱`); + return msg.say(stripIndents` + Question: ${question} + 🎱 ${answers[Math.floor(Math.random() * answers.length)]} 🎱 + `); } }; diff --git a/commands/random-res/magic-conch.js b/commands/random-res/magic-conch.js index b538c500..6287d274 100644 --- a/commands/random-res/magic-conch.js +++ b/commands/random-res/magic-conch.js @@ -1,4 +1,5 @@ const { Command } = require('discord.js-commando'); +const { stripIndents } = require('common-tags'); const answers = ['Maybe someday', 'Nothing', 'Neither', 'I don\'t think so', 'Yes', 'Try asking again']; module.exports = class MagicConchCommand extends Command { @@ -20,6 +21,9 @@ module.exports = class MagicConchCommand extends Command { } run(msg, { question }) { - return msg.say(`🐚 ${answers[Math.floor(Math.random() * answers.length)]} 🐚`); + return msg.say(stripIndents` + Question: ${question} + 🐚 ${answers[Math.floor(Math.random() * answers.length)]} 🐚 + `); } };