mirror of
https://github.com/TakeusV1/gameserver_discordpy_bot.git
synced 2026-10-13 17:15:34 +02:00
Merge branch 'main' of https://github.com/pomme2terree/mcquery_discordpy_bot
This commit is contained in:
commit
08fa99a2e4
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
|
||||
`pip3 install discord.py`<br>
|
||||
`pip3 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.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
|
||||
```
|
||||
Reference in new issue
Block a user