As per the linked issue, Discordjs seems to randomly fumble the Discord API websocket reacquisition, causing the bot to become a zombie process. To fix this, a user has to either manually observe the bot being offline and restart the process, or implement an external health check to check that the bot is online.
Is there a way to do this internally? IE within the bot application, poll the DiscordJS library's websocket status to determine if the process needs to be restarted?