blockbot/README.md

33 lines
653 B
Markdown
Raw Normal View History

2022-11-30 16:43:15 -07:00
1. Modify the following lines in ```bot.sh```
```
SQL_USER='root'
SQL_PASS='sql'
SQL_DATABASE='pooper'
```
2. Create the bot account on your instance
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
toot login (login as your bot account)
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
```