Giter Club home page Giter Club logo

rssman's Introduction

Telegram bot, which is able to parse RSS and use the openai api to generate a short summary and a link to the source. It's also possible to add sources through commands in the telegram bot.

Installation

git clone https://github.com/kenjitheman/rssman
  • Install all dependencies:
go mod tidy

Usage

  • Create file with name "config.local.hcl" and inside the file create:
tolegram_bot_token = "your token"
openai_token = "your token"
telegram_channel_id = -1116543419111    // example id

openai_promt = "Make a summary of the text"   // to make summary
  • Run the app using:
cd cmd
go run main.go
  • Or using docker:
docker build -t your_image_name .
docker run -d -p 8080:80 your_image_name

Commands

  • To add source:
/addsource {"name": "source name", "url": "source url"}
  • To get sources:
/listsources
  • To delete source:
/deletesource {"name": "source name"}
  • To set source priority:
/setpriority 

Contributing

  • Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

  • Please make sure to update tests as appropriate.

license

rssman's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rssman's Issues

Failing to run

2023/12/16 12:19:17 [ERROR] failed to load config: load config: field TelegramBotToken is required but not set
2023/12/16 12:19:17 [ERROR] failed to create botAPI: Not Found

Contents of config.local.hcl:

telegram_bot_token = "<REDACTED>"
openai_token = "sk-<REDACTED>"
telegram_channel_id = -100<REDACTED>

openai_prompt = "Make a summary of the text"

Ran go mod tidy after cloning the repo, then cd cmd and go run main.go

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.