Mods
This commit is contained in:
parent
fac74c883a
commit
78e0f0975a
15
main.py
15
main.py
|
@ -113,7 +113,14 @@ def string_to_number(input_string):
|
|||
|
||||
|
||||
def clean_string(string):
|
||||
return string.replace(""", '"')
|
||||
string = string.replace(""", '"')
|
||||
string = string.replace("'", "'")
|
||||
string = string.replace(""", '"')
|
||||
string = string.replace("'", "'")
|
||||
string = string.replace("&", "&")
|
||||
string = string.replace("<", "<")
|
||||
string = string.replace(">", ">")
|
||||
return string
|
||||
|
||||
|
||||
def escape_quotes(string):
|
||||
|
@ -262,7 +269,7 @@ async def on_message(ws, message):
|
|||
|
||||
elif cmd in ["help"]:
|
||||
update_time()
|
||||
await send_message(ws, f"Commands: describe | wins | numbers | date | bird | shitpost | who | when", room_id)
|
||||
await send_message(ws, f"Commands: describe | wins | numbers | date | bird | shitpost | who | when | write", room_id)
|
||||
|
||||
elif cmd in ["describe"]:
|
||||
if len(args) >= 1:
|
||||
|
@ -324,7 +331,7 @@ async def on_message(ws, message):
|
|||
update_time()
|
||||
await shitpost(ws, room_id)
|
||||
|
||||
elif cmd in ["write", "text", "meme"]:
|
||||
elif cmd in ["write", "writer", "text", "meme"]:
|
||||
if len(args) > 0:
|
||||
update_time()
|
||||
arg = " ".join(clean_list(args))
|
||||
|
@ -355,7 +362,7 @@ async def make_meme(ws, arg, room_id):
|
|||
command = gifmaker_command([
|
||||
"--input", file_name,
|
||||
"--words", arg,
|
||||
"--filter", "anyhue2",
|
||||
"--filterne", "anyhue2",
|
||||
"--opacity", 0.8,
|
||||
"--fontsize", 60,
|
||||
"--delay", 700,
|
||||
|
|
Loading…
Reference in New Issue