简体   繁体   中英

Is it possible to send a message in any channel when discord bot crashes?

I've seen someone who has a bot that sends a message in a log channel when it crashes, so someone knows how to send a message in a channel when my discord bot crashes?

There is technically no way because the process (bot) is stopped. However, you can avoid the crashing by catching it then logging it to a channel. You can also use another process to see when the bot “Crashes”

Here is more info: Catch all uncaughtException for Node js app

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM