I have some code that runs in the background, 24/7, in JavaScript of course. I'd like to set a discord.js bot to output a message if something (like an errror) happens on the code that is constantly running.
How do you send a message to any channel without listening for a messagge? All the tutorials create commands that rely on COMMAND to make the bot "reply" to you. I want the bot to be the one sending the first message, and reading back my response and acting accordingly.
I'm currently using the discord.js node library (https://discord.js.org/).
Is this possible?