Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nezutero/rssman

very flexible telegram bot, RSS parser, openai summary generator, automation
https://github.com/nezutero/rssman

back-end backend bot bots chatgpt chatgpt-api go golang news-bot rss rss-feed rss-feed-parser rss-feed-scraper rss-generator rss-parser server-side telegram telegram-bot telegram-bots telegrambot

Last synced: 4 months ago
JSON representation

very flexible telegram bot, RSS parser, openai summary generator, automation

Awesome Lists containing this project

README

        

> 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

```sh
git clone https://github.com/nezutero/rssman
```

- Install all dependencies:

```sh
go mod tidy
```

## Usage

- Create file with name "config.local.hcl" and inside the file create:

```hcl
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:

```sh
cd cmd
go run main.go
```

- Or using docker:

```sh
docker build -t your_image_name .
docker run -d -p 8080:80 your_image_name
```

## Commands

- To add source:

```go
/addsource {"name": "source name", "url": "source url"}
```

- To get sources:

```go
/listsources
```

- To delete source:

```go
/deletesource {"name": "source name"}
```

- To set source priority:

```go
/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

- [MIT](https://choosealicense.com/licenses/mit/)