fix qr sendfile
This commit is contained in:
@ -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 "):
|
||||||
|
Reference in New Issue
Block a user