From 2b88667061f2c0e5ee1b1db2600602d5da31b0e8 Mon Sep 17 00:00:00 2001 From: Auric Vente Date: Sat, 20 Apr 2024 13:27:49 -0600 Subject: [PATCH] Mods --- main.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 316d4ac..19c751c 100644 --- a/main.py +++ b/main.py @@ -335,11 +335,15 @@ async def on_message(ws, message): await shitpost(ws, room_id) elif cmd in ["write", "writer", "text", "meme"]: + update_time() + if len(args) > 0: - update_time() arg = " ".join(clean_list(args)) arg = clean_gifmaker(arg) - await make_meme(ws, arg, room_id) + else: + arg = None + + await make_meme(ws, arg, room_id) async def make_meme(ws, arg, room_id): @@ -361,10 +365,11 @@ async def make_meme(ws, arg, room_id): temp_file.write(chunk) file_name = temp_file.name + words = arg if arg else "[Random] [x2]" command = gifmaker_command([ "--input", file_name, - "--words", arg, + "--words", words, "--filter", "anyhue2", "--opacity", 0.8, "--fontsize", 60,