This commit is contained in:
insert 2024-08-10 15:20:40 -04:00
parent 65434e7b69
commit 70170deb81
Signed by: insert
GPG key ID: A70775C389ACF105
2 changed files with 8 additions and 0 deletions

View file

@ -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",

View file

@ -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")