- mcstatus
- sourceserver
token = 'xxxxxxxxxxxxxxx'
server_ip = 'xx.xx.xx.xx'
server_port = 'xxxxx'
mcOs = True
python -m venv discord_bot
source discord_bot/bin/activate
pip install discord.py
pip install mcstatus sourceserver
deactivate
You can setup a systemd service or do the following with “pm2” :
(which lets you manage your instances very easily with access to logs, console...)
### Setup
apt update
curl -sL https://deb.nodesource.com/setup_18.x | sudo bash -
apt install nodejs -y
npm install pm2@latest -g
### Usage
pm2 start app.py --interpreter python3 # To start the BOT
pm2 stop app.py # To stop the BOT
pm2 monit # To see the launched instances
pm2 save && pm2 startup # To launch the instances at each system startup