Report command

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2022-07-14 01:34:43 +03:00
parent cf6dae0f8f
commit 6eac328af0
Signed by untrusted user who does not match committer: ari
GPG key ID: A50D5B4B599AF8A2

View file

@ -524,6 +524,28 @@ class CommandParser:
return (guac_msg("chat", f"@{user} Here's a list of your aliases: {pid}"),)
@classmethod
def cmd_report(cls, user: str, args: List[str]) -> Tuple[str]:
"""Auth command, reports a user
Syntax: report <user> <reason>"""
if len(args) < 2:
return (
guac_msg(
"chat",
f"@{user} Who and for what do I report to admins/mods?",
),
)
cls.cmd_note(user, [f"forkie-{args[0]}", " ".join(args[1:])])
return (
guac_msg(
"chat",
f"Reported user @{args[0]} to admins/mods, imagine getting banned :skull:",
),
)
class MessageParser:
@staticmethod