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:
|
||||
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":
|
||||
response = text.print_cmd()
|
||||
send_reply_message(self, message, response)
|
||||
|
|
Loading…
Reference in a new issue