Skip to content

tetafro/feed-bot

Repository files navigation

Feed bot

Codecov Go Report CI

Telegram bot that reads RSS feeds and sends them to users.

Build and run

Create a bot and get Telegram API token from the bot called @botfather.

Copy and populate config

cp config.example.yaml config.yaml

Start

make build run

Deploy

Normally deploy is done by Github actions.

Manual deploy

SSH_SERVER=10.0.0.1:22 \
SSH_USER=user \
make deploy

Encrypted config

Encrypt

echo "password" > .vault_pass.txt
ansible-vault encrypt --output config.yaml.vault config.yaml

Edit

EDITOR='code --wait' \
ansible-vault edit config.yaml.vault