fix syntax error

This commit is contained in:
missytake 2025-11-15 23:26:53 +01:00
parent 7a0eb9a3dc
commit 448c98596a
Signed by: missytake
GPG key ID: 04CC6658320518DF

4
bot.py
View file

@ -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, ["🆗"])