Skip to content

FedericoPonzi/distributed-systems-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Distributed Systems bot

@distribsystems

This bot has the following goals:

  1. Tweet links from feeds of interesting websites. [Done]
  2. Retweet and like "interesting" tweets
  3. Schedule posts based on a publication timetable (with exceptions - like "publish now"), made from a Telegram bot interface.
  4. Save every tweet in the database, to do some analysis - based on interactions. [Done]
  5. A web based interface to let users review the sources of news.
  6. Use a shortlink system while publishing tweets, to track clicks and understand which feeds are more interesting for the users. [Done]

1. Feed RSS

The feed rss is now powered by the feeds_handler module.

3. Telegram bot + post at

Why telegram? Because I like the option to schedule a post by just sending a message on Telegram. I already use it to send links through telegram, but it's not possible to schedule tweets (yet).


Deployment

A systemd service for the telegram bot + crontab for recurring fetches. Example of crontab setup:

  • run.sh:
#!/bin/bash
/home/bots/distributed-systems-bot/bin/distributed-systems-bot --fetch-rss --config /home/bots/distributed-systems-bot/bin/config.yaml 2>&1 > /home/bots/distributed-systems-bot/logs/crontab-fetch-rss.out
  • example crontab:
0 * * * *       /home/bots/distributed-systems-bot/run.sh

Releases

No releases published

Packages

No packages published

Languages