Restrict command breakpoint

This commit is contained in:
Schimon Jehudah 2024-01-02 12:17:48 +00:00
parent 4701602355
commit 8b1e03d8e9

View file

@ -147,7 +147,14 @@ async def message(self, message):
match message_lowercase: match message_lowercase:
case "breakpoint": case "breakpoint":
breakpoint() if jid == get_value("accounts", "XMPP", "operator"):
breakpoint()
else:
response = (
"This action is restricted. "
"Type: breakpoint."
)
send_reply_message(self, message, response)
case "commands": case "commands":
response = text.print_cmd() response = text.print_cmd()
send_reply_message(self, message, response) send_reply_message(self, message, response)