Update README.md

This commit is contained in:
Takeus authored and GitHub committed 2022-05-19 19:16:40 +02:00
1 parent 99bdef257e
commit be1bda2e0d
1 file changed
+25 -1
+25 -1
View File
@@ -1,2 +1,26 @@
# mcquery_discordpy_bot
A simple bot written in python with discordpy to display a minecraft server.
### Dépendances
`pip install discord.py`<br>
`pip install mcstatus`
### Configuration
Il faut modifier les lignes suivantes:<br>
`token = 'xxxxxxxxxxxxxxx'`<br>
`server_ip = 'xx.xx.xx.xx'`<br>
`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.js # Pour démarrer le BOT
pm2 stop app.js # 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
```