mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-18 18:36:08 +00:00
perf: 请求超时时通知管理员
This commit is contained in:
@@ -224,6 +224,7 @@ class QQBotManager:
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
if failed == self.retry:
|
if failed == self.retry:
|
||||||
|
self.notify_admin("{} 请求超时".format("person_{}".format(event.sender.id)))
|
||||||
reply = "[bot]err:请求超时"
|
reply = "[bot]err:请求超时"
|
||||||
|
|
||||||
if reply != '':
|
if reply != '':
|
||||||
@@ -255,7 +256,8 @@ class QQBotManager:
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
if failed == self.retry:
|
if failed == self.retry:
|
||||||
reply = "err:请求超时"
|
self.notify_admin("{} 请求超时".format("group_{}".format(event.sender.id)))
|
||||||
|
reply = "[bot]err:请求超时"
|
||||||
|
|
||||||
if reply != '':
|
if reply != '':
|
||||||
return self.send(event, reply)
|
return self.send(event, reply)
|
||||||
|
|||||||
Reference in New Issue
Block a user