eight balls
This commit is contained in:
parent
62afd3bbb6
commit
0bdd74b4fe
2 changed files with 59 additions and 2 deletions
57
assets/cogs/eightball.py
Normal file
57
assets/cogs/eightball.py
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
import random
|
||||||
|
import discord
|
||||||
|
from discord.ext import commands
|
||||||
|
|
||||||
|
class eightball(commands.Cog):
|
||||||
|
def __init__(self, bot):
|
||||||
|
self.bot = bot
|
||||||
|
|
||||||
|
@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."
|
||||||
|
|
||||||
|
await ctx.send(text)
|
||||||
|
|
||||||
|
async def setup(bot):
|
||||||
|
await bot.add_cog(eightball(bot))
|
|
@ -41,5 +41,5 @@ latest_version = "0.0.0"
|
||||||
local_version = "2.2.0"
|
local_version = "2.2.0"
|
||||||
os.environ['gooberlocal_version'] = local_version
|
os.environ['gooberlocal_version'] = local_version
|
||||||
REACT = os.getenv("REACT")
|
REACT = os.getenv("REACT")
|
||||||
beta = False # this makes goober think its a beta version, so it will not update to the latest stable version or run any version checks
|
beta = True # this makes goober think its a beta version, so it will not update to the latest stable version or run any version checks
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue