aboutsummaryrefslogtreecommitdiffstats
path: root/bot/help.py (unfollow)
Commit message (Collapse)AuthorLines
2020-03-24Deseasonify: mock expensive API calls in debug modeGravatar kwzrd-1/+17
The methods will pretend that the selected asset was uploaded successfully. This allows extensive testing of the branding manager without API abuse.
2020-03-23Deseasonify: add `mock_in_debug` decoratorGravatar kwzrd-1/+21
This should be very useful for testing. See docstring.
2020-03-23Deseasonify: abdicate responsibility to wait until bot is readyGravatar kwzrd-7/+7
The wrapper will no longer wait for the bot to be ready before it calls the wrapped function for the first time. If the function requires the bot's cache to be ready, it is responsible for awaiting the method itself. This removes the need to acquire a reference to the bot instance inside the decorator, which seems to be difficult to do cleanly. As Mark adds, this may in fact be safer as the bot may temporarily disconnect while the task is active, and awaiting the bot's ready status every time will prevent issues in such a situation. Co-authored-by: MarkKoz <[email protected]>
2020-03-23Deseasonify: remove `load_extensions` methodGravatar kwzrd-19/+1
This is unused and no longer necessary, as all extensions load only once: on start-up, in `__main__.py`.
2020-03-23Deseasonify: extend BrandingManager documentationGravatar kwzrd-11/+50
2020-03-23Deseasonify: use BrandingError for negative responsesGravatar kwzrd-22/+18
This allows more flat code as raising will short-circuit, plus we do not need to build negative response embeds manually.
2020-03-22Deseasonify: handle BrandingErrorGravatar kwzrd-0/+5