This is one of my many upcoming projects.
I am the developer of the Rxiqi Discord Bot
I decided to make this monitor code to monitor the presence status of Rxiqi to alert my users/supporters of Rxiqi of when the bot is Online or Offline or down for maintenance.
It is my great pleasure to share this bit of code with the community to learn from it and make it better.
Lê Dieu Revolx#0001 Activity: Steering me in the right direction to make this bot work.
ᴊʏɢᴜʏ#9535 Activity: Helped me finally get it working so it doesnt spam like it was doing initially.
Precious
Activity: She is my entire inspiration, if it wasn't for Precious I would never of discovered the wonders of Discord.JS
Install the required node modules
npm i discord.js
then fill in the 'config.js' with the relative information for the monitor to monitor your bot.
Once you have done the above open up Command Prompt or Powershell and type node monitor.js
and it will load the script,
make sure to invite the monitor bot your discord server first and that the bot its monitoring is in the same guild.
Leave this script running 24/7 to ensure 24/7 Monitoring.
If you require some assistance please join our Discord Server, you will also see this code in action in our server too. Join Here