mirror of
https://github.com/TakeusV1/gameserver_discordpy_bot.git
synced 2026-10-13 17:15:34 +02:00
27 lines
837 B
Markdown
27 lines
837 B
Markdown
# gameserver_discordpy_bot
|
|
### Dependencies
|
|
`pip3 install discord.py`<br>
|
|
`pip3 install mcstatus sourceserver`<br>
|
|
|
|
### Config
|
|
`token = 'xxxxxxxxxxxxxxx'`<br>
|
|
`server_ip = 'xx.xx.xx.xx'`<br>
|
|
`server_port = 'xxxxx'`<br>
|
|
`mcOs = True`<br>
|
|
### Prod
|
|
```bash
|
|
### 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
|
|
```
|
|
## Example
|
|
<br>
|
|

|