Update 8ball

This commit is contained in:
Anthony M 2021-02-05 01:52:39 -06:00 committed by GitHub
parent 9080311b4c
commit 23d34d8fdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 8 deletions

View File

@ -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
}
]
};