Closed Soheab closed 4 years ago
I strongly suggest against using an API for such a feature. It's pretty simple to implement and API's typically have special answers (that's really the only point for having an API, afterall). I have provided a table and a code snippet from theGordHoard#9607
here including all 20 of the original responses.
Affirmative | Neutral | Negative |
---|---|---|
It is certain. | Reply hazy, try again. | Don't count on it. |
It is decidedly so. | Ask again later. | My reply is no. |
Without a doubt. | Better not tell you now. | My sources say no. |
Yes - definitely. | Cannot predict now. | Outlook not so good. |
You may rely on it. | Concentrate and ask again. | Very doubtful. |
As I see it, yes. Most likely. Outlook good. Yes. Signs point to yes.
const answers = [
"It is certain.",
"Reply hazy, try again.",
"Don't count on it.",
"It is decidedly so.",
"Ask again later.",
"My reply is no.",
"Without a doubt.",
"Better not tell you now.",
"My sources say no.",
"Yes - definitely.",
"Cannot predict now.",
"Outlook not so good.",
"You may rely on it.",
"Concentrate and ask again.",
"Very doubtful.",
"As I see it, yes.",
"Most likely.",
"Outlook good.",
"Yes.",
"Signs point to yes."
]
var answer = answers[Math.floor(Math.random()*answers.length)];
Made it myself 🤷♂️ Here: https://github.com/Soheab/eightball
Describe the plugin Like many bots have this, you ask a question and it gives a answer like as example Question: is powercord awesome? Answer: Perhaps.
Expected behavior Made this example with my bot, should be clear
The answers are from the nekos.life api.