A simple bot that sends requests to a specified website/service with a provided interval and sends a message if the destination is not available for some reason.
Persistance is included. Turning off and turning on will load previously created visit destinations.
- Create a token for your bot through @BotFather on Telegram
- Install Docker
- Create a
.env
file inside wandering-bot folder. - Put this in the created file and substitute
BOT_TOKEN
with yours:
MONGO_CONNECT=mongodb://mongo:27017/bot-db
BOT_TOKEN=<your-bot-father-generated-token>
Full bot:
make compdock
Only bot without the database:
make -i dock
Via only a ssh key for a private repository
Required secrets:
CONN_STRING
- your mongodb connection stringDOCKER_USERNAME
- your GitHub username. Used to pull an image from the repositoryGHCR_TOKEN
- generated personal access token. Can be created in the developer settings on GitHub. Used to pull an image from the private repository. Create link. Set read access in for packages.PRIVATE_SSH_KEY
- generated ssh-key.REMOTE_HOST
- your remote server IPREMOTE_PORT
- ssh port to connect withREMOTE_USERNAME
- remote server user to connect as via sshTELEGRAM_TOKEN
- your @BotFather token
Additional steps:
- Add the public part of the generated ssh key (*.pub file) to your remote's
authorized_keys
file in the.ssh
folder.