aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2021-04-29feat: Use embed timestamp in modpings offGravatar ToxicKidz-3/+5
2021-04-28CodeSnippets: fix type annotationsGravatar MarkKoz-4/+5
2021-04-28CodeSnippets: add more detail to the request error messageGravatar MarkKoz-2/+3
2021-04-28CodeSnippets: use a lower log level for 404 responsesGravatar MarkKoz-1/+2
Just cause a URL looks valid doesn't mean it will be valid, so a 404 is a normal and harmless error. Fixes #1553 Fixes BOT-Z4 Fixes BOT-Z8 Fixes BOT-Z9
2021-04-28CodeSnippets: avoid returning None when request raises an exceptionGravatar MarkKoz-10/+13
Move the exception handling to `on_message` to avoid writing a lot of None checks; `_fetch_response` is used multiple times in various places. Fixes #1554 Fixes BOT-Z7
2021-04-28Address error behavior update.Gravatar kosayoda-3/+3
BadUnionArgument sends command help after: https://github.com/python-discord/bot/pull/1434
2021-04-28Remove BrandingError check.Gravatar kosayoda-5/+0
This was removed in the branding manager rewrite: https://github.com/python-discord/bot/pull/1463/
2021-04-28Make flake8 happy :DGravatar rohan-1/+1
2021-04-28Use guild.afk_channel atr to retrieve afk Channel instance.Gravatar rohan-3/+1
2021-04-27Wait for cache to fill before redirectingGravatar Andi Qu-0/+1
2021-04-27Use a specific error message when a warned user isn't in the guildGravatar Matteo Bertucci-3/+15
This commit changes sighly how the warn, kick and mute commands to take a fetched member as their argument and to return a little error message if the user isn't in the guild rather than showing the whole help page.
2021-04-27Redirect to #bot-commands if the message's length is > 1000Gravatar Andi Qu-5/+16
2021-04-27Fixed the line limit and halved the char limitGravatar Andi Qu-1/+1
2021-04-27Merge two comments into oneGravatar Andi Qu-2/+1
Co-authored-by: Xithrius <[email protected]>
2021-04-25Wait for cache to be loaded before accesing member voice state and channels.Gravatar rohan-0/+1
2021-04-24Tests: simplify public flags handlingGravatar Matteo Bertucci-8/+2
Co_authored-by: Numerlor <[email protected]>
2021-04-21chore: Revert back to 'Due'Gravatar ToxicKidz-1/+1
2021-04-20chore: Use Embed.timestamp for showing when the reminder will be sentGravatar ToxicKidz-5/+8
2021-04-20Add the Moderators role to moderation_roles in configGravatar Joe Banks-0/+1
This allows mod alert pings to go through in #mod-alerts, the allowed mentions only included the mods team role which is not pinged on mod alerts.
2021-04-20Remove allowed mentions in modlog alertGravatar Boris Muratov-2/+1
The modlog alert embed no longer pings everyone.
2021-04-20Improve rediscache docGravatar Boris Muratov-1/+1
Co-authored-by: ChrisJL <[email protected]>
2021-04-20Tests: AsyncMock is now in the standard library!Gravatar Matteo Bertucci-1/+1
The `tests/README.md` file still referenced our old custom `AsyncMock` that has been removed in favour of the standard library one that has been introduced in 3.8. This commit fixes this by updating the section.
2021-04-19Update bot/exts/moderation/infraction/superstarify.pyGravatar Vivaan Verma-1/+1
Co-authored-by: Boris Muratov <[email protected]>
2021-04-19Change type hint from duration to expiryGravatar Vivaan Verma-2/+2
2021-04-19Add default duration as constant and use Duration converterGravatar Vivaan Verma-4/+4
2021-04-19Inline duration assignmentGravatar Vivaan Verma-2/+1
Co-authored-by: Rohan Reddy Alleti <[email protected]>
2021-04-20Add method for suspending member's stream when revoking stream perms.Gravatar Rohan-4/+27
2021-04-19Add afk voice channel to constants.Gravatar Rohan-0/+2
2021-04-19Update comment in list stream for readibilityGravatar Chris-1/+1
2021-04-19CamelCase the cog nameGravatar Boris Muratov-3/+3
2021-04-19Improve the wording of the list streamers embedGravatar ChrisJL-1/+1
Co-authored-by: Matteo Bertucci <[email protected]>
2021-04-19Remove unnecessary _ in variable nameGravatar Chris-3/+3
2021-04-19Update wording of comment to be clearer.Gravatar Chris-1/+1
2021-04-19Add command to list users with streaming permsGravatar Chris-1/+43
This is useful to audit users who still have the permission to stream. I have chosen to also sort and paginate the embed to make it easier to read. The sorting is based on how long until the user's streaming permissions are revoked, with permanent streamers at the end.
2021-04-19Require a mod role for stream commandsGravatar Chris-4/+4
Previously any staff member (including helpers) could use the stream commands.
2021-04-19Add blacklist format to the BOT_TRACE_LOGGERS env varGravatar Numerlor-4/+21
To mimic the same behaviour, setting all of the loggers to the trace level was changed to a "*" prefix without looking at other contents instead of setting it exactly to "ROOT" or "*"
2021-04-19Fix zen's negative indexingGravatar francisdbillones-1/+1
Negative indexing starts at -1, not 0, meaning lower bound should be -1 * len(zen_lines), not -1 * upper_bound.
2021-04-19Renamed duty.py to modpings.pyGravatar mbaruh-0/+0
2021-04-19Renamed Duty cog to ModpingsGravatar mbaruh-23/+23
The renaming includes the commands inside it.
2021-04-18Fix linting errorsGravatar Vivaan Verma-1/+1
2021-04-18Check if a duration was providedGravatar Vivaan Verma-2/+3
2021-04-18Make duration an optional arg and default it to 1 hourGravatar Vivaan Verma-1/+5
2021-04-18Added default duration of 1h to superstarifyGravatar Vivaan Verma-1/+1
2021-04-17Sort snippet matches by their start positionGravatar Andi Qu-5/+10
2021-04-17Tests: members shouldn't have any public flagsGravatar Matteo Bertucci-0/+8
2021-04-17Move the verified developer badge to the embed titleGravatar Matteo Bertucci-3/+5
2021-04-17Make YAMLGetter raise AttributeError instead of KeyErrorGravatar Matteo Bertucci-3/+4
Utility functions such as hasattr or getattr except __getattribute__ to raise AttributeError not KeyError. This commit also lowers the logging level of the error message to info since it is up to the caller to decide if this is an expected failure or not.
2021-04-17Remove here pingGravatar Boris Muratov-2/+2
Kinda defeats the purpose of being off-duty.
2021-04-17Name the rescheduling task, and cancel it on cog unloadGravatar mbaruh-1/+2
2021-04-17Improve documentationGravatar mbaruh-1/+3