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.
* 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>
* Simple ones first
* Less simple but still simple.
* Slightly more complicated
* use correct name
* move to module
* Black -l 120
* review
* give users the proper feedback
Co-authored-by: aikaterna <20862007+aikaterna@users.noreply.github.com>
Certain edge cases, e.g. two duplicate statuses, would cause random_status (which never yields) to loop either forever or for a long time.
This removes the while loop entirely.
* Streaming status fix
Added a settable streamer which is used to create a twitch url.
If rndstatus type is set to 1 (streaming) it uses the url so the bot actually shows as streaming (with purple dot and button to watch streamer) instead of saying live on twitch playing with a green dot.
* Changed delay back to 300
RC1 changes on all cogs. Tools has inrole fixed, now will display appropriately if 0 people are in the specified role. Timezone: removed the time place command as timezoneapi.io has changed to a paid service.