From c1beb8374eefa6c9b89586b457294fb025838e6c Mon Sep 17 00:00:00 2001 From: crate Date: Sun, 25 May 2025 04:15:08 -0500 Subject: [PATCH] fix qr sendfile --- garfmain.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/garfmain.py b/garfmain.py index feaeafa..951ced6 100644 --- a/garfmain.py +++ b/garfmain.py @@ -64,8 +64,10 @@ async def on_message(message): else: try: 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: + logger.error(e) await message.channel.send(e) if message.content.lower().startswith("garfping "):