Categorygithub.com/tetafro/feed-bot
repositorypackage
0.0.0-20240911183050-892a1ebc6e71
Repository: https://github.com/tetafro/feed-bot.git
Documentation: pkg.go.dev

# README

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