| Commit message (Collapse) | Author | Lines |
|
Co-authored-by: Dennis Pham <[email protected]>
|
|
Co-authored-by: Dennis Pham <[email protected]>
|
|
6 more questions added for the quiz command on the category Evergreen.
|
|
|
|
|
|
|
|
|
|
explicit encoding
|
|
|
|
Python 3.8 set the default asyncio event loop on windows to Proactor,
which is not supported in aiodns.
Co-authored-by: MarkKoz <[email protected]>
|
|
the flow
|
|
|
|
This emulates the main bot's message for consistency.
|
|
|
|
|
|
If user has DMs disabled then don't initialize board and
don't start a game.
|
|
The bot doesn't have enough rights to modify staff nicknames, and can't change it when it is invoked through DM neither.
|
|
|
|
If the user trying to start Minesweeper has DMs disabled
then warn him in the channel where the command was
invoked.
|
|
|
|
|
|
|
|
|
|
removed definition in extensions. Removed custom error handler.
|
|
error handler.
|
|
hint from `typing.Any` to `Exception`, changed handling `KeyError` to handling `UserNotPlayingError`.
|
|
|
|
handler that catch it instead and attached reveal and end command to it.
|
|
message when date is going out of range.
|
|
|
|
|
|
|
|
All calls to `wait_until_ready` are replaced with the new event.
To help with static analysis, we annotate `bot` attrs as instances
of our custom SeasonalBot class where necessary.
|
|
See docstring for explanation & comparison to the `on_ready` event.
This is taken from the Python bot repository. Originally implemented
by Mark. The `on_guild_available` callback was adapted and simplified
from the original implementation, as with Sentry in place, it is
believed that dispatching an error webhook is unnecessary.
Co-authored-by: MarkKoz <[email protected]>
|
|
|
|
|
|
Previously, this was done by the SeasonManager cog, which was removed
during our deseasonification efforts.
|
|
|
|
|
|
|
|
This way, we can standardize the way Months are shown to both the user
and the developer. Note that if passing a Month member to an f-string,
the `!s` format code must be specified to ensure our __str__ is used.
Co-authored-by: MarkKoz <[email protected]>
|
|
Previously, the `should_cycle` iterator would signal that it is time
to cycle by yielding True. As per Mark's suggestion, this is adjusted
to yield either None, or ints representing days since last cycle.
This is more transparent, as the daemon can now perform the comparison
against the configured cycle frequency itself, rather than relying
on being fed the correct value from a "black box".
See `_reset_should_cycle` docstring for further clarification.
Co-authored-by: MarkKoz <[email protected]>
|
|
Add a static check confirming that no seasons overlap. This avoids
having to deal with ambiguities in `get_current_season` at runtime,
as we can now rely on `len(active_seasons)` always being 0 or 1.
Co-authored-by: MarkKoz <[email protected]>
|
|
For the sake of consistency - all other seasonal bot names have
the B capitalized.
Co-authored-by: MarkKoz <[email protected]>
|
|
With the 'seasonal-structure' branch being merged in the branding
repository, we can start polling master.
|
|
After 00af207de3087a41270f216ad86e06ba7dbf9d42, we should ensure that
the month names aren't shown to the user in all caps.
Co-authored-by: MarkKoz <[email protected]>
|
|
It is not necessary for these to be coroutines.
Co-authored-by: MarkKoz <[email protected]>
|
|
This should be more readable.
Co-authored-by: MarkKoz <[email protected]>
|
|
Reduces code duplication.
Co-authored-by: MarkKoz <[email protected]>
|
|
Co-authored-by: MarkKoz <[email protected]>
|