From 70170deb818f6a3276abeac570483a07bafc65cf Mon Sep 17 00:00:00 2001 From: insert Date: Sat, 10 Aug 2024 15:20:40 -0400 Subject: [PATCH] Update --- gameutils.py | 4 ++++ speechbubble.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/gameutils.py b/gameutils.py index ceba778..b83a8af 100644 --- a/gameutils.py +++ b/gameutils.py @@ -43,6 +43,10 @@ class gameutils(commands.Cog): self.bot = bot bot.add_view(GameView()) + @commands.Cog.listener('on_ready') + async def gameready(self): + self.bot.add_view(GameView()) + @nextcord.slash_command( name="turngen", description="Roll the next turn for a certian role", diff --git a/speechbubble.py b/speechbubble.py index a33c095..d8c589d 100644 --- a/speechbubble.py +++ b/speechbubble.py @@ -117,6 +117,10 @@ class speechbubble(commands.Cog): self.bot = bot bot.add_view(ApplicationView(bot)) + @commands.Cog.listener('on_ready') + async def bubbleready(self): + self.bot.add_view(ApplicationView(self.bot)) + @commands.Cog.listener('on_message') async def on_message(self,message): res = await self.bot.cur.execute(f"SELECT imagelink, chance FROM userinfo WHERE serverid = {message.guild.id} AND userid = {message.author.id} ORDER BY RANDOM() LIMIT 1")