From 23d34d8fdc921e53ac68b41d858c6ab49647aac7 Mon Sep 17 00:00:00 2001 From: Anthony M <47640864+IDeletedSystem64@users.noreply.github.com> Date: Fri, 5 Feb 2021 01:52:39 -0600 Subject: [PATCH] Update 8ball --- commands/8ball.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/commands/8ball.js b/commands/8ball.js index 096fb04..0e5f6af 100644 --- a/commands/8ball.js +++ b/commands/8ball.js @@ -14,25 +14,22 @@ module.exports = { // This should have a 50/50 amount of yes and no answers for equality. ] const index = Math.floor(Math.random() * (answers.length - 1) + 1); + const question = message.content var answer = (answers[index]); const embed = { "title": ":8ball: Anitrox 8 Ball", - "description": "**question**", + "description": "**" + question + "**", "color": 6942950, "footer": { "icon_url": "https://cdn.discordapp.com/embed/avatars/0.png", "text": "Made with :heart: in Illinois | Anitrox (C) IDeletedSystem64 2018-2021" }, - "author": { - "name": "author name", - "url": "https://discordapp.com", - "icon_url": "https://cdn.discordapp.com/embed/avatars/0.png" - }, + "fields": [ { - "name": "🤔", - "value": "answer" + "name": "🤔 My Answer", + "value": answer } ] };