This commit is contained in:
Auric Vente 2024-04-20 13:27:49 -06:00
parent 02d12bc506
commit 2b88667061
1 changed files with 8 additions and 3 deletions

View File

@ -335,10 +335,14 @@ async def on_message(ws, message):
await shitpost(ws, room_id)
elif cmd in ["write", "writer", "text", "meme"]:
if len(args) > 0:
update_time()
if len(args) > 0:
arg = " ".join(clean_list(args))
arg = clean_gifmaker(arg)
else:
arg = None
await 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,