how to trigger the event in case of bot restart or crash discord.py

后端 未结 0 626
故里飘歌
故里飘歌 2021-01-30 06:33

I would like my bot when I restart it or crash it activates an event that deletes momentary data. I tried using on_disconnect as an event but it doesn\'t work. In the code below

相关标签:
回答
  • 消灭零回复
提交回复
热议问题