blockbot/README.md
2022-11-30 23:44:51 +00:00

694 B

  1. Create the bot account on your instance

  2. Modify the following lines in bot.sh

SQL_USER='root'
SQL_PASS='sql'
SQL_DATABASE='pooper'
  1. Build and start the bot container
docker build -t blockbot .
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)
  1. Go inside the container and setup the account auth
docker exec -it blockbot bash

toot login
(Follow the instructions on the screen to login as your bot account)

exit

  1. Testing the setup
docker exec -it blockbot bash
/opt/bot.sh scalps print