Skip to content

A Discord bot that tracks the status of a Minecraft server. It provides updates on the server's online/offline status, player count, and player names in a specified Discord channel using a rich embed.

License

Notifications You must be signed in to change notification settings

ItsMeRioooo/Minecraft-Status-Discord-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minecraft Status Discord Bot

A Discord bot that tracks the status of a Minecraft server. It provides updates on the server's online/offline status, player count, and player names in a specified Discord channel using a rich embed.

image

Features

  • Periodically checks the status of a Minecraft server every 30 seconds.
  • Sends updates to a configurable Discord channel.
  • Displays the server's online/offline status, player count, and player names.
  • Embed color, server name, and image are configurable via .env.
  • Clean, readable embed and footer.

Requirements

Setup Instructions

  1. Clone the repository:

    git clone <repository-url>
    cd minecraft-status-discord-bot
  2. Install dependencies: Make sure you have pip installed, then run:

    pip install -r requirements.txt
  3. Create a .env file: In the root directory of the project, create a .env file and add the following lines:

    DISCORD_TOKEN=your_discord_bot_token
    CHANNEL_ID=your_discord_channel_id
    SERVER_COLOR=#FF0000
    SERVER_NAME=Your Server Name
    SERVER_IMAGE=https://your-image-url.png
    MINECRAFT_SERVER_IP=your.minecraft.server.ip
    MINECRAFT_SERVER_PORT=25565
    
    • DISCORD_TOKEN: Your Discord bot token (from the Discord Developer Portal)
    • CHANNEL_ID: The ID of the channel where the bot will post
    • SERVER_COLOR: Embed color in hex (e.g., #00ff00)
    • SERVER_NAME: The display name for your server
    • SERVER_IMAGE: (Optional) Image URL for the embed thumbnail
    • MINECRAFT_SERVER_IP: Your Minecraft server IP or hostname
    • MINECRAFT_SERVER_PORT: Your Minecraft server port (default: 25565)
  4. Run the bot: Execute the following command to start the bot:

    python src/bot.py

Usage

Once the bot is running, it will automatically send and update status embeds in the specified Discord channel every 30 seconds. You can customize the server address, channel ID, and embed appearance in the .env file.

Contributing

Feel free to submit issues or pull requests if you have suggestions or improvements for the bot.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

A Discord bot that tracks the status of a Minecraft server. It provides updates on the server's online/offline status, player count, and player names in a specified Discord channel using a rich embed.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages