A simple, lightweight (~1.5MB start, ~3.5MB idle memory usage) self-hosted Discord Slash Command Bot to see a self-hosted minecraft server's stats. It is especially helpful to use /sniff
if you don't have static ip at home or your server. Though it should be work for other public servers but ip received from /sniff
will be wrong.
-
Simple data and ip finding with
/sniff
: -
Remote command execution with
/command
:- Requires
enable-rcon=true
inserver.properties
- Requires
-
Simple info about server with
/details Simple
:- Requires
enable-query=true
inserver.properties
- Requires
-
Detailed info about server with
/details Detailed
:- Requires
enable-query=true
inserver.properties
- Requires
- Download latest release from here.
- Extract the .zip archive.
- Edit the
sample.env
file. - Rename
sample.env
to.env
. - Modify file permissions for
mcstats
binary:sudo chmod +x mcstats
- Run the bot:
./mcstats
- Install rust compiler and cargo from here.
- Clone the repository.
- Edit
sample.env
and rename it to.env
. - Open the terminal and run the bot with
cargo run --release
.