aboutsummaryrefslogtreecommitdiffstats
path: root/bot/bot.py (unfollow)
Commit message (Collapse)AuthorLines
2020-06-19Update bot/resources/evergreen/trivia_quiz.jsonGravatar AtieP-1/+1
Co-authored-by: Dennis Pham <[email protected]>
2020-06-19Update bot/resources/evergreen/trivia_quiz.jsonGravatar AtieP-1/+1
Co-authored-by: Dennis Pham <[email protected]>
2020-06-136 more questions added.Gravatar AtieP-0/+30
6 more questions added for the quiz command on the category Evergreen.
2020-05-25Remove accidental extra word from docstringGravatar kwzrd-1/+1
2020-05-245/24 - bot utils - added encoding, and notes for persistGravatar jodth07-1/+4
2020-05-245/24 - bot exts - updated writing with utf8 encodingGravatar jodth07-4/+4
2020-05-195/19 - ext - set upen files encoding to utf8 for botsGravatar jodth07-14/+14
2020-05-195/19 - bot | xmas, easter, evergreen - updated open statesments with ↵Gravatar jodth07-11/+11
explicit encoding
2020-05-195/19 - evergreen | triva - fixed utf-8 bugs for windowsGravatar jodth07-1/+1
2020-05-17Set ayncio event loop to Selector on windows.Gravatar Numerlor-0/+6
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]>
2020-05-11Update halloweenify error message to make it more readable and restructure ↵Gravatar Matteo Bertucci-6/+6
the flow
2020-05-08F i x e d S p a c eGravatar DuckMasterAl-1/+1
2020-05-08Show bot prefix in rich presenceGravatar kwzrd-1/+4
This emulates the main bot's message for consistency.
2020-05-07Lint limitGravatar DuckMasterAl-1/+2
2020-05-07Updated Prefix and WebsiteGravatar DuckMasterAl-3/+4
2020-05-04exit minesweeper early if DM disabledGravatar Serban Constantin-11/+11
If user has DMs disabled then don't initialize board and don't start a game.
2020-05-04Handle staff users and DMs in the halloweenify cogGravatar Matteo Bertucci-2/+17
The bot doesn't have enough rights to modify staff nicknames, and can't change it when it is invoked through DM neither.
2020-04-29update minesweeper dm error messageGravatar Serban Constantin-1/+1
2020-04-26handle disabled DMs when starting MinesweeperGravatar Serban Constantin-5/+10
If the user trying to start Minesweeper has DMs disabled then warn him in the channel where the command was invoked.
2020-04-19Fix import orderGravatar Numerlor-1/+1
2020-04-19Allow issue command in #dev-contribGravatar Numerlor-2/+2
2020-04-19Add #dev-contrib to channel constantsGravatar Numerlor-0/+1
2020-04-08(Error Handler): Added `UserNotPlayingError` catching to error handler.Gravatar ks129-1/+5
2020-04-08(Minesweeper): Moved `UserNotPlayingError` to `bot.utils.exceptions`, ↵Gravatar ks129-14/+7
removed definition in extensions. Removed custom error handler.
2020-04-08(Minesweeper): Added raising `UserNotPlayingError`, attached flag command to ↵Gravatar ks129-0/+7
error handler.
2020-04-08(Minesweeper): Renamed user not playing error handler, changed `error` type ↵Gravatar ks129-2/+2
hint from `typing.Any` to `Exception`, changed handling `KeyError` to handling `UserNotPlayingError`.
2020-04-08(Minesweeper): Created new exception `UserNotPlayingError`.Gravatar ks129-0/+6
2020-04-07(Minesweeper): Reverted KeyError catching in reveal command, made error ↵Gravatar ks129-5/+8
handler that catch it instead and attached reveal and end command to it.
2020-04-07(Space): Moved APOD command min date to constant, made changes in error ↵Gravatar ks129-3/+5
message when date is going out of range.
2020-04-06(Space): Fixed formatting of try-except block.Gravatar ks129-5/+7
2020-04-06(Space): Added check is date in range 16th June 1995 and today.Gravatar ks129-1/+6
2020-04-06(Minesweeper): Added try-except block to reveal command.Gravatar ks129-1/+5
2020-04-04Transition towards `wait_until_guild_available` useGravatar kwzrd-11/+14
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.
2020-04-04Add `wait_until_guild_available` coroutineGravatar kwzrd-0/+34
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]>
2020-04-04Try to fetch devlog channel if not found in cacheGravatar kwzrd-2/+6
2020-04-03Remove redundant task assignmentGravatar kwzrd-1/+1
2020-04-03Send greeting message to devlog channel on bot start-upGravatar kwzrd-0/+1
Previously, this was done by the SeasonManager cog, which was removed during our deseasonification efforts.
2020-04-03Ensure cache is ready before grabbing devlog channelGravatar kwzrd-0/+1
2020-04-01Docstring: remove dots from list entriesGravatar kwzrd-8/+8
2020-04-01Deseasonify: remove redundant log level setterGravatar kwzrd-1/+0
2020-04-01Deseasonify: implement __str__ for Month enumGravatar kwzrd-15/+21
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]>
2020-03-31Deseasonify: yield ints representing days since cycleGravatar kwzrd-15/+14
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]>
2020-03-31Deseasonify: validate season setupGravatar kwzrd-3/+22
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]>
2020-03-31Deseasonify: adjust 'Merrybot' to 'MerryBot'Gravatar kwzrd-1/+1
For the sake of consistency - all other seasonal bot names have the B capitalized. Co-authored-by: MarkKoz <[email protected]>
2020-03-31Deseasonify: set target branch to masterGravatar kwzrd-1/+1
With the 'seasonal-structure' branch being merged in the branding repository, we can start polling master.
2020-03-31Deseasonify: title-case month names in frontendGravatar kwzrd-2/+2
After 00af207de3087a41270f216ad86e06ba7dbf9d42, we should ensure that the month names aren't shown to the user in all caps. Co-authored-by: MarkKoz <[email protected]>
2020-03-31Deseasonify: turn helpers into regular functionsGravatar kwzrd-5/+5
It is not necessary for these to be coroutines. Co-authored-by: MarkKoz <[email protected]>
2020-03-31Deseasonify: `pop` from remaining icons rather than unpackGravatar kwzrd-1/+1
This should be more readable. Co-authored-by: MarkKoz <[email protected]>
2020-03-31Deseasonify: delegate refresh to dedicated commandGravatar kwzrd-3/+1
Reduces code duplication. Co-authored-by: MarkKoz <[email protected]>
2020-03-31Refactor: Github to GitHubGravatar kwzrd-15/+15
Co-authored-by: MarkKoz <[email protected]>