Scroll down for requirements, setup instructions and screenshots.
- Basic commands: say, kick, teleport, save, weather, and gamemode.
- Show connection history, chat log, online players, banned, OP list, and whitelist.
- World save backup and restore system. Also has server folder backup/restore feature. These features need direct access to server files.
- Server autosave, start, stop, status, version, log, update server.jar (only with Vanilla or PaperMC), and edit server.properties
- Interface via RCON, Tmux or subprocess. Some features and command may be disabled if using RCON or Subprocess.
- Python3
- Java 64bit (If hosting Minecraft server)
- Tmux (If hosting Minecraft server)
- WSL (If on Windows)
- discord.py
- discord-components
- asyncio
- file-read-backwards (Needed for reading server log file (for now))
- mctools (If using RCON)
- subprocess, requests, datetime, fileinput, random, json, csv, sys, os, re
- beautifulsoup4 (For
?serverupdate
feature)
- Create Discord bot using this portal.
- Update
slime_vars.py
variables. - Run
python3 run_bot.py help
, shows commands to setup tmux and/or run bot.
e.g.python3 run_bot.py starttmux startboth attachtmux
- Use
?setchannel
command to set channel id, so you get important bot/server event updates. - Read through the help pages with
?help
or?help2
in Discord.
Create Python Virtualenvt:
python -m venv ~/pyenvs/slime_server
or
virtualenv ~/pyenvs/slime_server
Activate new Python Virtualenv:
source ~/pyenvs/slime_server/bin/activate
Install required Python modules:
pip install discord.py discord-components asyncio file-read-backwards mctools requests bs4
or
pip install -r requirements.txt