Skip to content

jpylypiw/heise-online-news-telegram-bot

Repository files navigation

heise-online-news-telegram-bot

This is the inofficial heise online telegram bot.

Travis (.org) Codacy grade GitHub repo size GitHub license Beerpay

Installation

This is how to install and run the software afterwards

Install the requirements

pip3 install -r requirements.txt

Copy configuration

cd /opt/scripts/heise-online-news-telegram-bot/
cp heise_online_bot/config/config.ini.example heise_online_bot/config/config.ini
cp heise_online_bot/config/news.ini.example heise_online_bot/config/news.ini
cp heise_online_bot/config/users.ini.example heise_online_bot/config/users.ini

Run the bot as systemd service

Edit the configuration file: sudo vim /etc/systemd/system/heise-online-bot.service

Paste this and change the paths for your installation:

[Unit]
Description=Heise Online News Telegram Bot
Wants=network-online.target
After=syslog.target time-sync.target network.target network-online.target

[Service]
ExecStart=/usr/bin/python3 heise_online_bot/
WorkingDirectory=/opt/scripts/heise-online-news-telegram-bot/
Restart=always
RestartSec=10
StandardOutput=none
StandardError=none
SyslogIdentifier=heise-online-bot
User=root
Group=root

[Install]
WantedBy=multi-user.target

Reload Daemon: systemctl daemon-reload

Enable autostart of daemon: systemctl enable heise-online-bot

Start daemon: systemctl start heise-online-bot

TO DO's

  • error handling improvements
  • logging improvements - more logging messages for all log levels
  • testing using unit tests
  • release planning

DEV Environment

To create a development environment you have to execute the following command after cloning the repository:

python3 setup.py develop

About

This is the inofficial heise online telegram bot

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages