aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2020-07-31Use asyncio.gather instead manual looping and awaitingGravatar ks129-3/+2
2020-07-31Simplify bot shutdown cogs removingGravatar ks129-9/+3
Unloading extensions already remove all cogs that is inside it and this is enough good for this case, because bot still call dpy's internal function later to remove cogs not related with extensions (when exist).
2020-07-23Improve extension + cogs removing comment on `close`Gravatar ks129-1/+1
Co-authored-by: Mark <[email protected]>
2020-07-23Add copyright about `_remove_extension` + make function privateGravatar ks129-2/+2
2020-06-21Silence: Add mod alert sending to `closing_tasks` to avoid errorGravatar ks129-1/+1
2020-06-21Reddit: Don't define revoke task as variable but instantly appendGravatar ks129-2/+1
2020-06-21Reddit: Remove unnecessary revoke task name changingGravatar ks129-1/+0
2020-06-20Implement bot closing tasks waiting + breaking `close` to multiple partsGravatar ks129-3/+31
Made to resolve problem with Reddit cog that revoking access token raise exception because session is closed. To solve this, I made `Bot.closing_tasks` that bot wait before closing. Moved all extensions and cogs removing to `remove_extension` what is called before closing everything else because need to call `cog_unload`.
2020-06-20Infractions: Fix cases when user leave from guild before assigning rolesGravatar ks129-6/+14
When user left from guild before bot can add Muted role, then catch this error and log.
2020-06-20Watchchannel: Moved message consuming task cancelling exceptionGravatar ks129-27/+26
Moved exception logging when cog is being unloaded and messages is still not consumed from `cog_unload` to `consume_messages` itself in try-except block to avoid case when requesting result too early (before cancel finished).
2020-06-17Update deletion scheduler to use latest watchlist configurationGravatar Joseph Banks-17/+5
2020-06-17Add LMGTFY to domain blacklistGravatar Joseph Banks-0/+1
2020-06-16Format parameters with a more consistent styleGravatar MarkKoz-19/+19
2020-06-16Add optional type annotations to reason in pardon funcsGravatar MarkKoz-2/+2
2020-06-16Revise inaccurate typehint for Optional reasonGravatar kosayoda-18/+31
2020-06-16Revise inaccurate docstring in RedisCacheGravatar kosayoda-2/+2
2020-06-16Refactor nested if-statementGravatar kosayoda-5/+4
2020-06-15Log exception info for failed attachment uploadsGravatar MarkKoz-1/+1
2020-06-15Update bot/resources/tags/customcooldown.mdGravatar Daniel Nash-3/+1
Co-authored-by: Mark <[email protected]>
2020-06-14Fix check for bot actor in infractionsGravatar MarkKoz-4/+4
The reason None check should be nested to avoid affecting the else/elif statements that follow.
2020-06-14Check infraction reason isn't None before shortening itGravatar MarkKoz-5/+8
2020-06-15Add the C# guild to the whitelistGravatar Dennis Pham-0/+1
2020-06-12Escape markdown in charinfo embedGravatar MarkKoz-2/+2
The embed displays the original character. If it's a markdown char, it would interfere with the embed's actual markdown. The backtick was especially troublesome. Fixes #996
2020-06-12Add scheme to URLGravatar Daniel Nash-1/+1
2020-06-12Update customcooldown.mdGravatar Daniel Nash-0/+2
2020-06-12Make title more specificGravatar Daniel Nash-1/+1
Co-authored-by: Mark <[email protected]>
2020-06-11Replace mention of Flask with DjangoGravatar Mark-1/+1
The site's description still stated that it was built with Flask, which is no longer accurate due to the move to Django.
2020-06-11Add cooldown to Channels in constants.pyGravatar Joseph Banks-0/+1
2020-06-11Add cooldown channel to EXCLUDED_CHANNELS tupleGravatar Joseph Banks-1/+1
2020-06-11Add cooldown channel to config-default.ymlGravatar Joseph Banks-0/+1
2020-06-11Fix trailing whitespace in Action fileGravatar Joseph Banks-1/+1