TurqW / LongSphinx

Discord bot made to help with role management and RPG playing. Name inspired by the Terra Ignota series by Ada Palmer.
5 stars 3 forks source link

RSS reader #95

Open diziara opened 3 years ago

diziara commented 3 years ago

A function that allows a server admin to give the bot an rss/atom feed, and have the bot notify the server when said thing is updated.

If it's not out of the way, users being able to get notifications to their DMs on feed updates might be cool too.

TurqW commented 3 years ago

Note for future self: RSS readers are polling-based, not push-based, so this would consist of scheduling a task to check for new content at regular intervals.

https://www.tutorialspoint.com/python_text_processing/python_reading_rss_feed.htm

diziara commented 2 years ago

If you do set it up to check for new content at regular intervals, there should probably be a way for the server admin (or just the bot settings) to tell the bot when to check. Like, part of the reason I requested this feature is to check for rss updates from the Emperor's game site, and as we try to release logs between a specific window, 99% of the rss feed stuff we'd actually care about would be posted during that time frame.