forked from sch/Slixfeed
Restrict command breakpoint
This commit is contained in:
parent
4701602355
commit
8b1e03d8e9
1 changed files with 8 additions and 1 deletions
|
@ -147,7 +147,14 @@ async def message(self, message):
|
||||||
|
|
||||||
match message_lowercase:
|
match message_lowercase:
|
||||||
case "breakpoint":
|
case "breakpoint":
|
||||||
|
if jid == get_value("accounts", "XMPP", "operator"):
|
||||||
breakpoint()
|
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)
|
||||||
|
|
Loading…
Reference in a new issue