Skip to content

Minecraft Status Bot for Discord written in Python

License

Notifications You must be signed in to change notification settings

Spectroxx/mcstatus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mcstatus

Minecraft Status Bot for Discord written in Python

Installation

  1. Clone the repository:
git clone https://github.com/Spectroxx/mcstatus.git
  1. Change Directory
cd mcstatus/
  1. Install the required dependencies using pip:
pip3 install -r requirements.txt

Configuration

  1. Edit the config.json file with the following structure:
{
  "token": "YOUR_DISCORD_BOT_TOKEN",
  "server_ip": "YOUR_MINECRAFT_SERVER_IP",
  "server_name": "YOUR_SERVER_NAME",
  "channel_id": YOUR_DISCORD_CHANNEL_ID
}

Usage

To start the bot, run the following command:

python3 mcstatus.py

Features

  • Fetches the Minecraft server status using the mcsrvstat.us API.
  • Displays the server's online/offline status and player count in a Discord embedded message.
  • Retrieves the list of online players and displays their names.

Links

License
mcsrvstat.us API

About

Minecraft Status Bot for Discord written in Python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages