View TODO.md to check out what stupid things are bonkin my head atm >.<
Keep your server community informed! This Discord bot automatically displays live statistics about your Minecraft server in a user-friendly embed format. It updates every 30 seconds, ensuring everyone has the latest information at their fingertips.
- Live Server Stats: Stay updated on key metrics like the number of players online, their names, version and server status.
2. Todo-list: Users can add and manage tasks with an interactive to-do list using the /task_add command and completion buttons.
3. MatchMaking: Command for random 1v1 pair-ups from given options.
4.Whitelist: whitelisting players in SMP through bot(linked with discord srv).
- Other trivial commands like /thank, /erase, /setactivity(to change bot activity through commad), etc.
Ensure you have Node.js and npm (or yarn) installed on your system (download from https://nodejs.org/en)
- Clone this repository.
- Install dependencies with
npm install
(or yarn install). - Configure the Bot:
Rename config.example.json
to config.json
in the project directory and replace the following keys with your actual information:
{
"token": "YOUR_BOT_TOKEN",
"clientId": "YOUR_BOT_CLIENT_ID",
"guildId": "YOUR_DISCORD_SERVER_ID",
"serverIp": "YOUR_MINECRAFT_SERVER_IP",
"port": "PORT",
"allowedUsers": ["USER1_ID", "USER2_ID", "USER3_ID"]
}
- You can obtain your bot token and client ID from the Discord Developer Portal: https://discord.com/developers/docs/intro.
- Your guild ID is your Discord server's unique identifier (find it in server settings).
- use
node deploy-commands.js
to register commands. - Use
nodemon run index.js
to start the bot with automatic restarting on code changes.
Once the bot is running in your server, users can simply type the /status
command to view the live server statistics embed.