fix: pushed some fixes

This commit is contained in:
Rushil Umaretiya 2022-02-20 11:57:15 -05:00
parent 0e2874a82d
commit 44f54ad252

2
bot.py
View File

@ -103,6 +103,7 @@ async def list(ctx):
print(cursor.rowcount)
embed = discord.Embed(title='Here is a list of all your tracked collections', color=0x6106D0)
embed.set_image(url=str(random.choice(NFT_LINKS)))
async with await db.execute("SELECT id from guilds WHERE guild_id=? LIMIT 1", (ctx.guild.id,)) as cursor:
async for row in cursor:
@ -192,7 +193,6 @@ async def update_prices():
print("We have a change!")
embed = discord.Embed(title='Price changes', color=0x6106D0)
embed.set_image(url=str(random.choice(NFT_LINKS)))
embed.set_footer(text=f'Sent at {datetime.now().strftime("%d/%m/%Y %H:%M:%S")}', icon_url="https://imagedelivery.net/E-VnZk4fwouzlzwX_qz4fg/532afb9b-8805-424d-8f85-da5c3e0f8600/public")