fix syntax error
This commit is contained in:
parent
7a0eb9a3dc
commit
448c98596a
4
bot.py
4
bot.py
|
|
@ -15,7 +15,7 @@ def log_event(bot, accid, event):
|
|||
|
||||
def open_downstairs(bot, accid, msg):
|
||||
pin = 24
|
||||
if not msg.chat_id == cli.get_admin_chat(bot.rpc, accid)
|
||||
if not msg.chat_id == cli.get_admin_chat(bot.rpc, accid):
|
||||
bot.rpc.send_msg(accid, msg.chat_id, MsgData(text="permission denied"))
|
||||
return
|
||||
bot.rpc.send_reaction(accid, msg.id, ["🆗"])
|
||||
|
|
@ -32,7 +32,7 @@ def echo(bot, accid, event):
|
|||
# or and use realtime channels
|
||||
msg = event.msg
|
||||
if msg.text == "/open2":
|
||||
if not msg.chat_id == cli.get_admin_chat(bot.rpc, accid)
|
||||
if not msg.chat_id == cli.get_admin_chat(bot.rpc, accid):
|
||||
bot.rpc.send_msg(accid, msg.chat_id, MsgData(text="permission denied"))
|
||||
return
|
||||
bot.rpc.send_reaction(accid, msg.id, ["🆗"])
|
||||
|
|
|
|||
Loading…
Reference in a new issue