From 18aa1c998fece4e6804e5a4799941ed4dd4fb7c0 Mon Sep 17 00:00:00 2001 From: ctih1 Date: Tue, 22 Jul 2025 13:09:15 +0300 Subject: [PATCH] ?? --- assets/cogs/eightball.py | 66 ++++++++++++++-------------------------- 1 file changed, 23 insertions(+), 43 deletions(-) diff --git a/assets/cogs/eightball.py b/assets/cogs/eightball.py index ec6c955..9f96901 100644 --- a/assets/cogs/eightball.py +++ b/assets/cogs/eightball.py @@ -8,50 +8,30 @@ class eightball(commands.Cog): @commands.command() async def eightball(self, ctx): - answer = random.randint(1, 20) - text = "Nothing" - if answer==1: - text = "It is certain." - elif answer==2: - text = "It is decidedly so." - elif answer==3: - text = "Without a doubt." - elif answer==4: - text = "Yes definitely." - elif answer==5: - text = "You may rely on it." - elif answer==6: - text = "As I see it, yes." - elif answer==7: - text = "Most likely." - elif answer==8: - text = "Outlook good." - elif answer==9: - text = "Yes." - elif answer==10: - text = "Signs point to yes." - elif answer==11: - text = "Reply hazy, try again." - elif answer==12: - text = "Ask again later." - elif answer==13: - text = "Better not tell you now." - elif answer==14: - text = "Cannot predict now." - elif answer==15: - text = "Concentrate and ask again." - elif answer==16: - text = "Don't count on it." - elif answer==17: - text = "My reply is no." - elif answer==18: - text = "My sources say no." - elif answer==19: - text = "Outlook not so good." - elif answer==20: - text = "Very doubtful." + answer = random.choice([ + "It is certain.", + "It is decidedly so.", + "Without a doubt.", + "Yes definitely.", + "You may rely on it.", + "As I see it, 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.", + "Don't count on it.", + "My reply is no.", + "My sources say no.", + "Outlook not so good.", + "Very doubtful." + ]) - await ctx.send(text) + await ctx.send(answer) async def setup(bot): await bot.add_cog(eightball(bot))