-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
512 additions
and
594 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Feeds | ||
|
||
[![Latest Release](https://img.shields.io/pypi/v/feedsbot.svg)](https://pypi.org/project/feedsbot) | ||
[![CI](https://github.com/deltachat-bot/feedsbot/actions/workflows/python-ci.yml/badge.svg)](https://github.com/deltachat-bot/feedsbot/actions/workflows/python-ci.yml) | ||
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) | ||
|
||
Delta Chat bot that allows to subscribe to RSS/Atom feeds. | ||
|
||
## Install | ||
|
||
```sh | ||
pip install feedsbot | ||
``` | ||
|
||
Configure the bot: | ||
|
||
```sh | ||
feedsbot init bot@example.com PASSWORD | ||
``` | ||
|
||
Start the bot: | ||
|
||
```sh | ||
feedsbot serve | ||
``` | ||
|
||
Run `feedsbot --help` to see all available options. | ||
|
||
## User Guide | ||
|
||
To subscribe an existing group to some feed: | ||
|
||
1. Add the bot to the group. | ||
2. Send `/sub https://delta.chat/feed.xml` (replace the URL with the desired feed) | ||
|
||
To subscribe to a feed and let the bot create a dedicated group for you with the feed image as group avatar, etc., just send the command `/sub https://delta.chat/feed.xml` (replacing the URL for the desired feed) to the bot in private/direct (1:1) chat. | ||
|
||
To unsubscribe the group from all feeds, just remove the bot from the group, or to unsubscribe from a particular feed (replace feed URL as appropriate): | ||
|
||
`/unsub https://delta.chat/feed.xml` | ||
|
||
To see all feeds a group is subscribed to, just send `/list` inside the desired group. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
"""Feeds bot.""" | ||
|
||
from .hooks import cli | ||
|
||
|
||
def main() -> None: | ||
"""Run the application.""" | ||
try: | ||
cli.start() | ||
except KeyboardInterrupt: | ||
pass |
Oops, something went wrong.