⚗️ add called api hook

This commit is contained in:
yanyongyu
2021-04-01 20:23:55 +08:00
parent 6b763e20d0
commit f0a6ff4627
3 changed files with 57 additions and 10 deletions

View File

@ -58,6 +58,7 @@ async def _check_reply(bot: "Bot", event: "Event"):
))
except Exception as e:
log("WARNING", f"Error when getting message reply info: {repr(e)}", e)
return
# ensure string comparation
if str(event.reply.sender.user_id) == str(event.self_id):
event.to_me = True