mirror of
https://github.com/TakeusV1/gameserver_discordpy_bot.git
synced 2026-10-13 17:15:34 +02:00
Update README.md
This commit is contained in:
1 parent
99bdef257e
commit
be1bda2e0d
1 file changed
+25
-1
@@ -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
|
||||
```
|
||||
Reference in new issue
Block a user