GithubHelp home page GithubHelp logo

volleyvalky's Introduction

News Feed Bot

Bot for Telegram that gets and posts news to a channel.

Features

  • Fetching articles from RSS feeds
  • Article summaries powered by GPT-3.5
  • Admin commands for managing sources

Configuration

Environment variables

  • NFB_TELEGRAM_BOT_TOKEN — token for Telegram Bot API
  • NFB_TELEGRAM_CHANNEL_ID — ID of the channel to post to, can be obtained via @JsonDumpBot
  • NFB_DATABASE_DSN — PostgreSQL connection string
  • NFB_FETCH_INTERVAL — the interval of checking for new articles, default 10m
  • NFB_NOTIFICATION_INTERVAL — the interval of delivering new articles to Telegram channel, default 1m
  • NFB_FILTER_KEYWORDS — comma separated list of words to skip articles containing these words
  • NFB_OPENAI_KEY — token for OpenAI API
  • NFB_OPENAI_PROMPT — prompt for GPT-3.5 Turbo to generate summary

HCL

News Feed Bot can be configured with HCL config file. The service is looking for config file in following locations:

  • ./config.hcl
  • ./config.local.hcl
  • $HOME/.config/volleyvalkybot/config.hcl

The names of parameters are the same except that there is no prefix and names are in lower case instead of upper case.

Nice to have features (backlog)

  • More types of resources — not only RSS
  • Summary for the article
  • Dynamic source priority (based on 👍 and 👎 reactions) — currently blocked by Telegram Bot API
  • Article types: text, video, audio
  • De-duplication — filter articles with the same title and author
  • Low quality articles filter — need research
    • Ban by author?
    • Check article length — not working with audio/video posts, but it will be fixed after article type implementation

volleyvalky's People

Contributors

clipclock08 avatar lopatin-ol avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.