diff --git a/README.md b/README.md index 7aacb9e..345a636 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,26 @@ # mcquery_discordpy_bot - A simple bot written in python with discordpy to display a minecraft server. + +### Dépendances +`pip3 install discord.py`
+`pip3 install mcstatus` + +### Configuration +Il faut modifier les lignes suivantes:
+`token = 'xxxxxxxxxxxxxxx'`
+`server_ip = 'xx.xx.xx.xx'`
+`server_port = 'xxxxx'` + +### Mise en PROD +On peut utiliser par exemple **PM2**: +```bash +## Installation +apt update +curl -sL https://deb.nodesource.com/setup_16.x | sudo bash - +apt install nodejs -y +npm install pm2@latest -g +## Utilisation +pm2 start app.py --interpreter python3 # Pour démarrer le BOT +pm2 stop app.py # Pour stopper le BOT +pm2 monit # Pour voir les instances lancées (leurs logs...) +pm2 save # Pour lancer les instances à chaque démarrage du système +```