This repository contains the source code for a Discord bot monitor. This tool helps you track the presence status of your Discord bots, alerting users when a bot is online, offline, or undergoing maintenance.
- Real-time monitoring of Discord bot status.
- Notifications for bot availability changes.
- Compatible with Discord API v14.
- Node.js (v16.9.0 or later)
- Discord Developer Portal Application with a bot token
- Clone this repository to your local machine using:
git clone https://github.com/ThunderDoesDev/TS-Monitor.git
- Navigate to the cloned directory.
- Install the required Node.js modules with:
npm install
-
Configure the bot:
- Rename
config.example.json
toconfig.json
. - Update the configuration with your bot token and server-specific settings:
{ "bot": { "token": "YOUR_MONITOR_BOT_TOKEN", "botID": "YOUR_MAINBOT_ID", "statusChannel": "YOUR_STATUS_CHANNEL_ID", "mainGuild": "YOUR_MAIN_GUILD_ID" } }
- Replace the placeholders with your specific details:
token
: The Discord token of your monitor bot.botID
: The ID of the bot you want to monitor.statusChannel
: The ID of the channel where status updates will be posted.mainGuild
: The ID of the main server where both the monitor bot and the monitored bot reside.
- Rename
-
Invite the monitor bot to your Discord server. Ensure the bot being monitored is present in the same server.
- Open your command prompt or PowerShell.
- Execute the monitor script by typing:
node monitor
- Keep the monitor script running to ensure uninterrupted status tracking.
- Update your configuration settings as necessary to adapt to changes in your setup or the Discord API.
- Avoid sharing your bot token or committing it to public repositories.
- Introduced a new configuration template.
- Upgraded to Discord API v14 for enhanced performance and compatibility.
For support, issues, or enhancements, please open an issue in this repository or join our discord support server.
This project is licensed under the MIT License - see the LICENSE file for details.