Update
This commit is contained in:
parent
65434e7b69
commit
70170deb81
2 changed files with 8 additions and 0 deletions
|
@ -43,6 +43,10 @@ class gameutils(commands.Cog):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
bot.add_view(GameView())
|
bot.add_view(GameView())
|
||||||
|
|
||||||
|
@commands.Cog.listener('on_ready')
|
||||||
|
async def gameready(self):
|
||||||
|
self.bot.add_view(GameView())
|
||||||
|
|
||||||
@nextcord.slash_command(
|
@nextcord.slash_command(
|
||||||
name="turngen",
|
name="turngen",
|
||||||
description="Roll the next turn for a certian role",
|
description="Roll the next turn for a certian role",
|
||||||
|
|
|
@ -117,6 +117,10 @@ class speechbubble(commands.Cog):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
bot.add_view(ApplicationView(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')
|
@commands.Cog.listener('on_message')
|
||||||
async def on_message(self,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")
|
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")
|
||||||
|
|
Loading…
Reference in a new issue