From b0f9e2c4ed6ca069b1841153e6e47a68a46e0787 Mon Sep 17 00:00:00 2001 From: dragonfire535 Date: Fri, 3 Mar 2017 12:36:04 -0500 Subject: [PATCH] 8 Ball no username --- commands/response/8ball.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commands/response/8ball.js b/commands/response/8ball.js index 264ef70e..1f9263fe 100644 --- a/commands/response/8ball.js +++ b/commands/response/8ball.js @@ -17,13 +17,12 @@ class MagicBall extends commando.Command { if(!message.channel.permissionsFor(this.client.user).hasPermission('READ_MESSAGES')) return; } console.log("[Command] " + message.content); - let username = message.author; let question = message.content.split(" ").slice(1).join(" "); let coin = ['It seems the answer is yes, yes?', 'It seems the answer is no.', 'It is a little doubtful, yes?', 'It seems it is very likely to be true.'][Math.floor(Math.random() * 4)]; if(question === "") { question = "Not Specified." } - message.channel.sendMessage(username.username + " asked: " + question + "\n:8ball: " + coin + " :8ball:"); + message.channel.sendMessage("Question: " + question + "\n:8ball: " + coin + " :8ball:"); } }