fix qr sendfile

This commit is contained in:
2025-05-25 04:15:08 -05:00
parent 48a7033ba6
commit c1beb8374e

View File

@ -64,8 +64,10 @@ async def on_message(message):
else: else:
try: try:
qr_code = await generate_qr(text) qr_code = await generate_qr(text)
await discord.File(fp=qr_code, filename="qrcode.png") sendfile = discord.File(fp=qr_code, filename="qrcode.png")
await message.channel.send(file=sendfile)
except Exception as e: except Exception as e:
logger.error(e)
await message.channel.send(e) await message.channel.send(e)
if message.content.lower().startswith("garfping "): if message.content.lower().startswith("garfping "):