From 9a6e6f03cf2e5f4b0db58a1a2235fc7c30414d93 Mon Sep 17 00:00:00 2001 From: phixxy Date: Wed, 12 Jul 2023 19:13:19 -0700 Subject: [PATCH] Identified bug in react_to_msg function, added a comment to fix later --- sparkytron3000.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sparkytron3000.py b/sparkytron3000.py index 8e2e3b5..0b10444 100644 --- a/sparkytron3000.py +++ b/sparkytron3000.py @@ -53,7 +53,8 @@ bot = commands.Bot(command_prefix='!', intents=intents) async def moderate(ctx, filename): await ctx.send("Reminder, this currently tool works by replacing the filename on the ftp server with a black image. The description will remain the same and may need to be altered.") await upload_ftp("blank_image.png", os.getenv('ftp_ai_webpage'), filename) - await ctx.send("Image replaced") + output = "Image " + filename + " replaced" + await ctx.send(output) async def upload_ftp(local_filename, server_folder, server_filename): client = aioftp.Client() @@ -230,7 +231,7 @@ def edit_channel_config(channel_id, key, value): json.dump(config_data, f) async def react_to_msg(ctx, react): - if True: + if True: #this should say if react: but I am leaving it because people are enjoying it for now if not random.randint(0,10) and ctx.author.id != 1097302679836971038: system_msg = "Send only an emoji as a discord reaction to the following chat message" message = ctx.content[0]