The loop to get user count is unnecessary since `self.bot.users` already contains a unique list of user objects and is updated internally via listeners.
* [RSS] Make RSS work with cog disabling API
* Update feed qualifier to work with disabling
Instead of the catch-all dealing with feeds having no time, just let the catch-all handle everything. If the cog has been disabled for a long period of time and there are no matches via the saved feed information, the feed will only post 1 feed post instead of all of them (10, 20, 25 posts depending on the feed usually). If the cog is reinstated and there is only a partial match (say, 18 out of 20 feeds before it finds a qualifying match)... it will still post all 18 posts.
Co-authored-by: aikaterna <20862007+aikaterna@users.noreply.github.com>
* rss support for targeted channels
* process review
* remove style and revert black
* Check for permissions
Co-authored-by: aikaterna <20862007+aikaterna@users.noreply.github.com>
* status
* oops
* default status should be online and not idle
* lol
* QoL improvements while testing this PR
Presence will now be updated after using commands that change presence status or type.
More clarity for users on the option they have picked with the rndstatus type and rndstatus status commands.
Black @ 120.
Co-authored-by: aikaterna <20862007+aikaterna@users.noreply.github.com>
This still has the issue that if a feed continually posts entries without a title, nothing will be posted from the feed, but a no-title post should be a rarity to begin with (only seen very sporadically in Pinterest posts so far)
* Add recursive mapping proxy type
* Move `force` logic to `get_current_feed()` method
* Add `on_aikaternacogs_rss_message` dispatch
* Welp, looks like MappingProxyType isn't subclassable, that's a bummer
* God, I'm an idiot...
* Fuck the extra protections then, I'm sure all cog devs are responsible
;)
* Update version number