Self-hosted discord bot to control your MCSS instance.
Prerequisites:
- Python 3.9
- Discord Bot Token
.ENV file
Dont forget to change rename .env.example to .env and change it's contents:
BOT_TOKEN=replace with bot tokenBOT_OWNER=unused for nowBOT_GUILD=your discord server idMCSS_KEY=mcss api key, check mcss docs for infoMCSS_API=http://yourapiurl.local:25560Installing required packages:
pip install -r requirements.txtEasy!
python3 ./commander.pyAlternatively:
py ./commander.pyThe bot makes use of discord slash commands, these are the currently implemented commands:
/server start (server name)
/server stop (server name)
Currently only the bot owner can execute commands, regardless of the BOT_OWNER value in the .ENV file