From 0bdd74b4feb621ec2822e92bfc4db15f210ee569 Mon Sep 17 00:00:00 2001 From: WhatDidYouExpect <89535984+WhatDidYouExpect@users.noreply.github.com> Date: Tue, 15 Jul 2025 23:27:17 +0200 Subject: [PATCH] eight balls --- assets/cogs/eightball.py | 57 ++++++++++++++++++++++++++++++++++++++++ modules/globalvars.py | 4 +-- 2 files changed, 59 insertions(+), 2 deletions(-) create mode 100644 assets/cogs/eightball.py diff --git a/assets/cogs/eightball.py b/assets/cogs/eightball.py new file mode 100644 index 0000000..ec6c955 --- /dev/null +++ b/assets/cogs/eightball.py @@ -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)) diff --git a/modules/globalvars.py b/modules/globalvars.py index 571ec11..72f6af4 100644 --- a/modules/globalvars.py +++ b/modules/globalvars.py @@ -41,5 +41,5 @@ latest_version = "0.0.0" local_version = "2.2.0" os.environ['gooberlocal_version'] = local_version 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 + \ No newline at end of file