Skip to content

Discord Bot to interact with a Minecraft server through RCON to get stats stored by VanillaTweaks's "Track Statistics" and "Track Raw Statistics" datapacks.

License

Notifications You must be signed in to change notification settings

carter-ray/Minecraft_StatBuddy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minecraft Stat Buddy

Stat Buddy is a Discord bot that interfaces with a home minecraft server through RCON to obtain statistics tracked by Vanilla Tweaks

How to use

  • Suggested: Host this yourself on the same network as your Minecraft server to avoid port forwarding your RCON port.
  • Suggested: Do not use the same port for RCON as you would to connect to the server if you are port forwarding.
  • Enable RCON,
    • Suggested: Set a nice, long, complex password
  • Download the "Track Statistics" and "Track Raw Statistics" datapacks from Vanilla Tweaks
  • Add these packs to your worlds datapack folder.
  • Restart the Minecraft server.

Requirements

  • Minecraft Server
  • Discord
  • RCON Enabled (strong password recommended)
  • VanillaTweaks's "Track Statistics" datapack
  • VanillaTweaks's "Track Raw Statistics" datapack

Commands

/ip - Returns the public IP address of your minecraft server

/stat <category> <statistic_name> [player] - Returns statistics from the minecraft server

.env keys

DISCORD_BOT_TOKEN=<Really.Long.Discord-Token>   		      // secret token for your Discord bot
GUILD_ID=999999999999999999							            // discord server/guild id where the bot will respond
GLOBAL_SERVER_ADDRESS=<public_domain:port>|<:port>          // assumes localhost:25565 if missing
RCON_ADDR_PORT=<static_ip:port>|<hostname:port>|<:port>     // assumes localhost:25575 if missing
RCON_PW=<secure-password>

About

Discord Bot to interact with a Minecraft server through RCON to get stats stored by VanillaTweaks's "Track Statistics" and "Track Raw Statistics" datapacks.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages