bot.png | ||
bot.sh | ||
bot.v1 | ||
config.json | ||
crontab | ||
Dockerfile | ||
README.md | ||
windows-task.bat |
-
Create the bot account on your instance
-
Modify the following lines in
bot.sh
SQL_USER='root'
SQL_PASS='sql'
SQL_DATABASE='pooper'
- 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)
- 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
- Testing the setup
docker exec -it blockbot bash
/opt/bot.sh scalps print