Fix alias bug where it makes the special spaces char (`) ignored

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2022-08-02 22:31:11 +03:00
parent dda0b24105
commit d5682184e0
Signed by untrusted user who does not match committer: ari
GPG key ID: A50D5B4B599AF8A2

View file

@ -404,7 +404,7 @@ def paste(content: str, no_content_msg: str) -> Union[str, Tuple[None, str]]:
if not content:
return None, guac_msg("chat", no_content_msg)
burl: str = "https://www.toptal.com/developers/hastebin"
burl: str = "https://hastebin.com"
pid = requests.post(
f"{burl}/documents",
@ -1320,7 +1320,8 @@ class MessageParser:
return cls.type_chat(
[
user,
f"@{CONFIG['bot-name']} {CONFIG['aliases'][command[0]]} {' '.join(command[1:])}".strip(),
f"@{CONFIG['bot-name']} {CONFIG['aliases'][command[0]]} \
{html_unescape(' '.join(str_msg.split(' ')[2:]))}".strip(),
]
)
except RecursionError: