reduce timeout to 15 seconds to notice errors earlier
This commit is contained in:
parent
c520024749
commit
8085f64523
2
bot.py
2
bot.py
|
|
@ -37,7 +37,7 @@ def echo(bot, accid, event):
|
|||
return
|
||||
bot.rpc.send_reaction(accid, msg.id, ["🆗"])
|
||||
try:
|
||||
subprocess.run(["./unlock.sh"], timeout=60)
|
||||
subprocess.run(["./unlock.sh"], timeout=15)
|
||||
except subprocess.TimeoutExpired:
|
||||
bot.rpc.send_reaction(accid, msg.id, ["❌"])
|
||||
elif msg.text.startswith("/open"):
|
||||
|
|
|
|||
Loading…
Reference in a new issue