aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2020-08-23Address review comments from @kwzrdGravatar Joe Banks-19/+14
2020-08-20Disable raw commandsGravatar Joe Banks-2/+2
2020-08-20Make client parameter mandatory for wait_for_deletionGravatar MarkKoz-15/+8
A client instance is necessary for the core feature of this function. There is no way to obtain it from the other arguments. The previous code was wrong to think `discord.Guild.me` is an equivalent. Fixes #1112
2020-08-20Restrict reminder methods to authors and admins.Gravatar Numerlor-2/+24
Before, any user could modify the reminders of others by the id. This restricts the behaviour to only admins and users can only modify the reminders they authored.
2020-08-19Replace stinky single-item unpacking syntaxGravatar MarkKoz-1/+1
2020-08-19Swap argument order in ChainMapsGravatar MarkKoz-2/+2
The defaults should be last to ensure they don't take precedence over explicitly set values.
2020-08-16Re-align status iconsGravatar Joe Banks-3/+3
2020-08-16msg rather than doc_embedGravatar AtieP-2/+2
2020-08-16Use wait_for_deletion from /bot/utils/messages.py instead of doc_cleanupGravatar AtieP-25/+3
2020-08-16Remove the !ask tagGravatar Leon Sandøy-9/+0
2020-08-15Unnominate banned users from the talent poolGravatar MarkKoz-19/+35
Fixes #1065
2020-08-15Escape Markdown in reddit post titlesGravatar MarkKoz-0/+3
Use a Unicode look-alike character to replace square brackets, since they'd otherwise interfere with the Markdown. Fixes #1030
2020-08-15Truncate mod log contentGravatar MarkKoz-0/+4
Discord has a limit of 2000 characters for messages.
2020-08-15Don't patch ctx.message.author in antispamGravatar MarkKoz-4/+5
The modification propagated across all code that is using the same `Message` object, including all other `on_message` listeners. This caused weird bugs e.g. the filtering cog thinking the bot authored a message that triggered a filter. Patching only `ctx.author` means the implementation is more fragile. Infraction code must ensure it only retrieves the author via `ctx.author` and not through `ctx.message`. Fixes #1005 Fixes BOT-7D
2020-08-15Satisfy some of the Azure pipelines' code requirementsGravatar AtieP-3/+3
2020-08-15Add doc cleanupGravatar AtieP-2/+26
2020-08-14Add status information to user commandGravatar Joseph Banks-8/+13
2020-08-14Update tests for user commandsGravatar Joseph Banks-32/+55
2020-08-14Add badges & status to user commandGravatar Joseph Banks-28/+67
2020-08-14Add YAML values for badgesGravatar Joseph Banks-0/+11
2020-08-14Add constants for badgesGravatar Joseph Banks-0/+11
2020-08-13Fix typo on the traceback tagGravatar AtieP-1/+1
See issue #1101
2020-08-12Filtering: ignore errors for duplicate offensive messagesGravatar MarkKoz-3/+11
The error happens when a filter is triggered by a message edit. Fixes #1099 Fixes BOT-6B