This commit is contained in:
ctih1 2025-07-22 13:09:15 +03:00
parent 5ff2a24dde
commit 18aa1c998f

View file

@ -8,50 +8,30 @@ class eightball(commands.Cog):
@commands.command() @commands.command()
async def eightball(self, ctx): async def eightball(self, ctx):
answer = random.randint(1, 20) answer = random.choice([
text = "Nothing" "It is certain.",
if answer==1: "It is decidedly so.",
text = "It is certain." "Without a doubt.",
elif answer==2: "Yes definitely.",
text = "It is decidedly so." "You may rely on it.",
elif answer==3: "As I see it, yes.",
text = "Without a doubt." "Most likely.",
elif answer==4: "Outlook good.",
text = "Yes definitely." "Yes.",
elif answer==5: "Signs point to yes.",
text = "You may rely on it." "Reply hazy, try again.",
elif answer==6: "Ask again later.",
text = "As I see it, yes." "Better not tell you now.",
elif answer==7: "Cannot predict now.",
text = "Most likely." "Concentrate and ask again.",
elif answer==8: "Don't count on it.",
text = "Outlook good." "My reply is no.",
elif answer==9: "My sources say no.",
text = "Yes." "Outlook not so good.",
elif answer==10: "Very doubtful."
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."
await ctx.send(text) await ctx.send(answer)
async def setup(bot): async def setup(bot):
await bot.add_cog(eightball(bot)) await bot.add_cog(eightball(bot))