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()
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))