Skip to content

Liefert den täglichen Känguru-Comic von Zeit Online auf Telegram.

License

Notifications You must be signed in to change notification settings

jvytee/dailykaenguru

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dailykaenguru

Liefert den täglichen Känguru-Comic von Zeit Online auf Telegram.

This is a telegram bot to deliver the Känguru-Comic published every day by german newspaper Zeit Online directly in the messenger.

Installation

Make sure you have a recent rust toolchain installed. Additionally, OpenSSL development libraries are required:

# Debian/Ubuntu based distros
apt install libssl-dev 

# RedHat/Fedora based distros
dnf install openssl-devel

You can then clone this repository and build/install a binary from source using cargo:

git clone https://github.com/jvytee/dailykaenguru.git
cargo install --path dailykaenguru

Usage

Run dailykaenguru to start the telegram bot. It can be easily configured via environment variables:

# Use /var/lib/dailykaenguru as cache directory
export KAENGURU_DATA_PATH=/var/lib/dailykaenguru

# Store active chats in JSON file (relative to cache directory)
export KAENGURU_CHATS_FILE=chats.json

# Read secret Telegram bot token from file
export KAENGURU_TOKEN_FILE=/etc/dailykaenguru/token

dailykaenguru

To deliver the comic to all users that signed up, run dailykaenguru --deliver. E.g. You could do so every morning at 09:00 using SystemD timers or any scheduling solution you like.

Running dailykaenguru --download will only acquire the latest comic from the internet.

You can furthermore set the RUST_LOG environment variable to adjust log verbosity.

About

Liefert den täglichen Känguru-Comic von Zeit Online auf Telegram.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages