Files
Syntrel/cogs/fun/eightball.py

46 lines
1.3 KiB
Python
Raw Permalink Normal View History

2025-09-14 18:54:56 -04:00
import random
import discord
2025-09-14 18:54:56 -04:00
from discord.ext import commands
2025-11-02 23:32:52 -05:00
def eightball_command():
2025-09-14 18:54:56 -04:00
@commands.hybrid_command(
name="8ball",
description="Ask any question to the bot.",
)
async def eight_ball(self, context, *, question: str):
2025-09-14 18:54:56 -04:00
answers = [
"It is certain.",
"It is decidedly so.",
"You may rely on it.",
"Without a doubt.",
"Yes - definitely.",
"As I see, yes.",
"Most likely.",
"Outlook good.",
"Yes.",
"Signs point to yes.",
"Reply hazy, try again.",
"Ask again later.",
"Better not tell you now.",
"Cannot predict now.",
"Concentrate and ask again later.",
"Don't count on it.",
"My reply is no.",
"My sources say no.",
"Outlook not so good.",
"Very doubtful.",
]
embed = discord.Embed(
title="8 Ball",
2025-09-14 18:54:56 -04:00
description=f"{random.choice(answers)}",
color=0x7289DA,
2025-09-14 18:54:56 -04:00
)
2025-11-02 23:32:52 -05:00
embed.set_author(
name="Fun", icon_url="https://yes.nighty.works/raw/eW5lLm.webp"
)
2025-09-14 18:54:56 -04:00
embed.set_footer(text=f"The question was: {question}")
await context.send(embed=embed)
2025-11-02 23:32:52 -05:00
return eight_ball