Skip to content

A Discord bot that displays active members in your Minecraft Realms server.

Notifications You must be signed in to change notification settings

bhnord/minecraft-realms-discord-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minecraft Realms Discord Bot

This is a Discord Bot that displays online users in your Minecraft Realm
image of bot image of response

The bot displays total online users in its bio, which updates every 60s.
The bot also lists online users and their usernames with the command $online in a chat visible to the bot.

This bot works in tandem with Minecraft Realms API Server running on the same machine

Setup

1. Registering and Inviting Your Bot

Follow the directions here and create your own discord app Save the Discord Token generated by your app.

This app uses default bot permissions and does not require administrator.

Invite the bot to your server.

2. Setting up Your Realms API Server

Visit the other repository: Minecraft Realms API Server and setup and the server via the instructions

3. Running a Virtual Environment

Run the following comamnds (Unix)

  1. python3 -m venv .venv to create a virtual environment
  2. source ./.venv/bin/activate to enter the virtual environment
  3. pip install -r requirements.txt to install the necessary dependencies

4. Starting the Bot

  1. Create a new file called .env
  2. Input your Discord Token, and the default port for Minecraft Realms API Server in the file as shown below:
DISCORD_TOKEN="your_discord_token_here"
API_LOCATION="http://127.0.0.1:5000"

Run python3 bot.py to start the bot

About

A Discord bot that displays active members in your Minecraft Realms server.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages