Mods
This commit is contained in:
parent
02d12bc506
commit
2b88667061
9
main.py
9
main.py
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue