aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts (follow)
Commit message (Collapse)AuthorAgeLines
* Merge branch 'master' into encoding_bug_fixGravatar Josué D. (JD)2020-05-24-11/+33
|\
| * Merge branch 'master' into minesweeper-disabled-dm-handlingGravatar Dennis Pham2020-05-23-5/+22
| |\
| | * Merge branch 'master' into boo-fixGravatar Dennis Pham2020-05-19-3/+5
| | |\
| | | * F i x e d S p a c eGravatar DuckMasterAl2020-05-08-1/+1
| | | |
| | | * Lint limitGravatar DuckMasterAl2020-05-07-1/+2
| | | |
| | | * Updated Prefix and WebsiteGravatar DuckMasterAl2020-05-07-3/+4
| | | |
| | * | Update halloweenify error message to make it more readable and restructure ↵Gravatar Matteo Bertucci2020-05-11-6/+6
| | | | | | | | | | | | | | | | the flow
| | * | Handle staff users and DMs in the halloweenify cogGravatar Matteo Bertucci2020-05-04-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.
| * | exit minesweeper early if DM disabledGravatar Serban Constantin2020-05-04-11/+11
| | | | | | | | | | | | | | | If user has DMs disabled then don't initialize board and don't start a game.
| * | update minesweeper dm error messageGravatar Serban Constantin2020-04-29-1/+1
| | |
| * | handle disabled DMs when starting MinesweeperGravatar Serban Constantin2020-04-26-5/+10
| |/ | | | | | | | | | | If the user trying to start Minesweeper has DMs disabled then warn him in the channel where the command was invoked.
* | 5/24 - bot exts - updated writing with utf8 encodingGravatar jodth072020-05-24-4/+4
| |
* | 5/19 - ext - set upen files encoding to utf8 for botsGravatar jodth072020-05-19-14/+14
| |
* | 5/19 - bot | xmas, easter, evergreen - updated open statesments with ↵Gravatar jodth072020-05-19-11/+11
| | | | | | | | explicit encoding
* | 5/19 - evergreen | triva - fixed utf-8 bugs for windowsGravatar jodth072020-05-19-1/+1
|/
* Fix import orderGravatar Numerlor2020-04-19-1/+1
|
* Allow issue command in #dev-contribGravatar Numerlor2020-04-19-2/+2
|
* Merge branch 'master' into wait-until-guild-readyGravatar Mark2020-04-16-3/+23
|\
| * (Error Handler): Added `UserNotPlayingError` catching to error handler.Gravatar ks1292020-04-08-1/+5
| |
| * (Minesweeper): Moved `UserNotPlayingError` to `bot.utils.exceptions`, ↵Gravatar ks1292020-04-08-14/+1
| | | | | | | | removed definition in extensions. Removed custom error handler.
| * (Minesweeper): Added raising `UserNotPlayingError`, attached flag command to ↵Gravatar ks1292020-04-08-0/+7
| | | | | | | | error handler.
| * (Minesweeper): Renamed user not playing error handler, changed `error` type ↵Gravatar ks1292020-04-08-2/+2
| | | | | | | | hint from `typing.Any` to `Exception`, changed handling `KeyError` to handling `UserNotPlayingError`.
| * (Minesweeper): Created new exception `UserNotPlayingError`.Gravatar ks1292020-04-08-0/+6
| |
| * (Minesweeper): Reverted KeyError catching in reveal command, made error ↵Gravatar ks1292020-04-07-5/+8
| | | | | | | | handler that catch it instead and attached reveal and end command to it.
| * (Space): Moved APOD command min date to constant, made changes in error ↵Gravatar ks1292020-04-07-3/+5
| | | | | | | | message when date is going out of range.
| * (Space): Fixed formatting of try-except block.Gravatar ks1292020-04-06-5/+7
| |
| * (Space): Added check is date in range 16th June 1995 and today.Gravatar ks1292020-04-06-1/+6
| |
| * (Minesweeper): Added try-except block to reveal command.Gravatar ks1292020-04-06-1/+5
| |
* | Transition towards `wait_until_guild_available` useGravatar kwzrd2020-04-04-10/+13
|/ | | | | | 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.
* Merge master: adjust `Space` cog locationGravatar kwzrd2020-04-01-4/+273
| | | | Module was placed in the `seasons` pkg, which we renamed to `exts`.
* Docstring: remove dots from list entriesGravatar kwzrd2020-04-01-8/+8
|
* Deseasonify: remove redundant log level setterGravatar kwzrd2020-04-01-1/+0
|
* Deseasonify: implement __str__ for Month enumGravatar kwzrd2020-04-01-4/+3
| | | | | | | | 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]>
* Deseasonify: yield ints representing days since cycleGravatar kwzrd2020-03-31-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]>
* Deseasonify: set target branch to masterGravatar kwzrd2020-03-31-1/+1
| | | | | With the 'seasonal-structure' branch being merged in the branding repository, we can start polling master.
* Deseasonify: title-case month names in frontendGravatar kwzrd2020-03-31-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]>
* Deseasonify: turn helpers into regular functionsGravatar kwzrd2020-03-31-5/+5
| | | | | | It is not necessary for these to be coroutines. Co-authored-by: MarkKoz <[email protected]>
* Deseasonify: `pop` from remaining icons rather than unpackGravatar kwzrd2020-03-31-1/+1
| | | | | | This should be more readable. Co-authored-by: MarkKoz <[email protected]>
* Deseasonify: delegate refresh to dedicated commandGravatar kwzrd2020-03-31-3/+1
| | | | | | Reduces code duplication. Co-authored-by: MarkKoz <[email protected]>
* Refactor: Github to GitHubGravatar kwzrd2020-03-31-15/+15
| | | | Co-authored-by: MarkKoz <[email protected]>
* Refactor: adjust docstrings based on feedbackGravatar kwzrd2020-03-31-10/+6
| | | | | | | | * Capitalize month names * Add backticks to `sha` attr reference * Avoid misusing the term 'poll' Co-authored-by: MarkKoz <[email protected]>
* Refactor: capitalize Month enum membersGravatar kwzrd2020-03-31-13/+13
| | | | Co-authored-by: MarkKoz <[email protected]>
* Deseasonify: add persistent branding configurationGravatar kwzrd2020-03-30-5/+31
| | | | | | | | | | | | | | | | | | | | A persistent config file will remember whether the daemon is supposed to be running, or not. This means that instead of relying on the env variable, the daemon can be turned on or off "once and for all" via a command, and will not violate this decision on restart. This effectively deprecates the `Branding.autostart` env var. It is believed that having two ways to configure the same thing would be more confusing than useful. The env var will be removed. The two helper functions for reading and writing have been implemented in a generic manner, meaning that should a new config key be added in the future, the helpers shouldn't require any further adjustments. Suggested by lemon and scragly. Co-authored-by: Leon Sandøy <[email protected]> Co-authored-by: scragly <[email protected]>
* Deseasonify: reduce icon shuffle log verbosityGravatar kwzrd2020-03-29-1/+1
| | | | | It is not necessary to log all icon paths on each shuffle. Creates unnecessary visual clutter in the logfile.
* Deseasonify: re-order command defs for consistency with docGravatar kwzrd2020-03-28-52/+52
| | | | | | | | Define commands in the same order in which the cog's docstring lists them. This shall make it easier to browse or look up implementations. The commands are defined roughly in the order in which a user would be expected to use them.
* Deseasonify: add cmd showing all available seasonsGravatar kwzrd2020-03-28-1/+24
|
* Deseasonify: log in `add_cog` rather than in each `setup`Gravatar kwzrd2020-03-28-55/+0
| | | | | | | | | | | | The previous system required each extension's `setup` func to log that the cog was loaded. This leads to inconsistent messages all trying to convey the same thing, variable logger names in the output file are difficult to read, and several extensions were not logging at all. By logging directly in the `add_cog` method, we reduce code repetition, ensure consistent format, and remove the responsibility to remember that a log should be made.
* Merge master: sentry sdk, updated contributing docsGravatar kwzrd2020-03-28-1/+20
|
* Deseasonify: make `get_extensions` an iteratorGravatar kwzrd2020-03-28-10/+13
| | | | Simplify internal structure & adjust var naming.
* Deseasonify: make `get_package_names` an iteratorGravatar kwzrd2020-03-28-10/+6
| | | | | This simplifies the function and is more in-line with how the function is being used.