2022-11-30 16:43:59 -07:00
|
|
|
1. Create the bot account on your instance
|
|
|
|
|
|
|
|
2. Modify the following lines in ```bot.sh```
|
2022-11-30 16:43:15 -07:00
|
|
|
```
|
|
|
|
SQL_USER='root'
|
|
|
|
SQL_PASS='sql'
|
|
|
|
SQL_DATABASE='pooper'
|
|
|
|
```
|
|
|
|
|
2022-11-30 16:43:59 -07:00
|
|
|
3. Build and start the bot container
|
2022-11-30 16:36:25 -07:00
|
|
|
```
|
|
|
|
docker build -t blockbot .
|
2022-11-30 16:39:09 -07:00
|
|
|
docker run -d --name blockbot --restart=always -e ENDPOINT=poster.place --add-host postgresql:192.168.0.146 blockbot
|
|
|
|
|
|
|
|
(Change the IP address to your postgres server, do not use 127.0.0.1 or localhost)
|
2022-11-30 16:36:25 -07:00
|
|
|
```
|
|
|
|
|
2022-11-30 16:43:15 -07:00
|
|
|
4. Go inside the container and setup the account auth
|
2022-11-30 16:36:25 -07:00
|
|
|
|
|
|
|
```
|
|
|
|
docker exec -it blockbot bash
|
|
|
|
|
2022-11-30 16:44:51 -07:00
|
|
|
toot login
|
|
|
|
(Follow the instructions on the screen to login as your bot account)
|
2022-11-30 16:36:25 -07:00
|
|
|
|
|
|
|
exit
|
|
|
|
|
|
|
|
```
|
|
|
|
|
2022-11-30 16:43:15 -07:00
|
|
|
5. Testing the setup
|
2022-11-30 16:36:25 -07:00
|
|
|
|
2022-11-30 16:39:09 -07:00
|
|
|
```
|
|
|
|
docker exec -it blockbot bash
|
|
|
|
/opt/bot.sh scalps print
|
|
|
|
```
|