aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2022-07-04Capitalize the "D" in "Discord"Gravatar Bradley Reynolds-1/+1
"Discord" is a proper noun, and should be capitalized. Signed-off-by: Bradley Reynolds <[email protected]>
2022-06-29Use the new Messageable.typing instead of the removed Messageable.trigger_typingGravatar Chris Lovering-4/+4
2022-06-28document eval command accepting multiple codeblocksGravatar Numerlor-0/+3
2022-06-28improve usage hint of timeit and eval commandGravatar Numerlor-2/+2
2022-06-28Pin fakeredis to 1.7.5 due to breaking aioredis changeGravatar Chris Lovering-14/+16
This can be unpinned once https://github.com/SebastiaanZ/async-rediscache/pull/18 is merged
2022-06-28Use new application format for message data in test helperGravatar Chris Lovering-1/+1
2022-06-28Ignore auto_moderation_action messages when applying anti-spam rulesGravatar Chris Lovering-1/+2
When a message triggers an auto_moderation_action notification, Discord re-writes the author field for the system message to look as if it's from the original author. This means those messages counted towards our anti-spam filter. This both triggered the filter too early, and also resulted in those auto mod messages being deleted when the filter was hit.
2022-06-28Bump botcore to get latest d.py changesGravatar Chris Lovering-164/+161
2022-06-22Rename filtering send log kwarg for consistency with where it's sent fromGravatar Chris Lovering-2/+2
2022-06-22Improved output format of guild autoban notificationsGravatar Chris Lovering-1/+3
2022-06-19filter out source code tags, remove unnecessary regexGravatar Numerlor-5/+14
2022-06-19filter out headerlinks for descriptionsGravatar Numerlor-0/+5
2022-06-17Fix help embed viewsGravatar mbaruh-11/+4
Due to various breaking changes in the discord.py library the views of the help embed stopped working properly. - Use `add_item` in `CommandView`. This was done in GroupView but was apparently missed in `CommandView`, and the former (hacky) method no longer works. - Instead of editing the help message normally (which required to then defer the response), the message edit is made to be the response itself. It seems like the callback would automatically defer the response if none was made, but that no longer happens.
2022-06-15Don't ping mods for autoban filtersGravatar Chris Lovering-3/+7
2022-06-15Include the list type when telling mods a new autoban filter was addedGravatar Chris Lovering-1/+2
2022-06-14Always prepend guild name to guild invite filters.Gravatar Chris Lovering-7/+10
Some guild invites are autoban filters, which require the mod to set a comment which includes [autoban]. Having the guild name in the comment is still useful when reviewing filter list, so prepend it to the set comment in case some mod forgets. Co-authored-by: Alex Noel <[email protected]>
2022-06-14Only check for autoban filters if reason key is present and not NoneGravatar Chris Lovering-1/+3
Fixes bot#2194 Fixes BOT-35H
2022-06-14Allow char info in all channels bar py-genGravatar Chris Lovering-2/+2
2022-06-13Auto bump nomination threadsGravatar Chris Lovering-1/+7
Every nomination thread we call the thread bumper command this manually, so automating this is a no brainer.
2022-06-13Fix autobans not working for invite filtersGravatar mbaruh-1/+6
2022-06-12Add reroll command. (#1568)Gravatar Rohan Reddy Alleti-18/+159
Co-authored-by: Bluenix <[email protected]>
2022-06-13Correct "older" to "younger"Gravatar Boris Muratov-1/+1
Co-authored-by: Mark <[email protected]>
2022-06-13Correct _get_messages_from_channels type hints and add docstringGravatar mbaruh-4/+9
2022-06-12Make `predicate_after` exclusive as wellGravatar mbaruh-1/+1
2022-06-12Clarify age is exclusive in `purge` docstringGravatar mbaruh-1/+5
2022-06-11Add user purging commandGravatar mbaruh-2/+9
The command cleans all public messages from a user. This is a private case that is common enough that it probably deserves a shortcut. Since the `purge` alias is never used for the clean group I repurposed it for this new command.
2022-06-11Fix clean range not being exclusiveGravatar mbaruh-2/+6
2022-06-08Improve nomination message consistency and include user mentionsGravatar Mark-31/+28
2022-06-07chore: Remove allowed_strings in favour of LiteralGravatar Vivaan Verma-28/+8
2022-06-07HelpChannels: refactor pin/unpin functionsGravatar Mark-13/+17
2022-06-07HelpChannels: pass message directly to pin_wrapperGravatar Mark-16/+12
2022-06-05Filter out all header links through tagsGravatar Numerlor-1/+5
Replacing the paragraph sign on the string missed some other symbols that were used for permalinks.
2022-06-03Add Explicit Namespaces To Branding CachesGravatar Hassan Abouelela-4/+2
Signed-off-by: Hassan Abouelela <[email protected]>
2022-06-03Use MappingProxyType For Asset MapGravatar Hassan Abouelela-2/+3
Signed-off-by: Hassan Abouelela <[email protected]>
2022-05-29Update clean regex description with cleaner examplesGravatar Autonymic-5/+3
2022-05-29Make small wording and style changesGravatar wookie184-7/+8
2022-05-29Raise ValueError if max_length greater than allowed by paste serviceGravatar wookie184-3/+11
2022-05-28Clean from public active threads when channels is set to *Gravatar Chris Lovering-3/+3
2022-05-28Fix testsGravatar wookie184-0/+3
2022-05-28Copy message instead of modifying originalGravatar wookie184-5/+5
2022-05-28Add special handling for eval command followed by backticks.Gravatar wookie184-0/+27
2022-05-27Fix !clean users command to handle more than one user (#2178)Gravatar Autonymic-5/+5
* Fix !clean users command to properly handle more than one user * Make !clean user an alias of !clean users instead of the other way around Co-authored-by: Xithrius <[email protected]>
2022-05-27Catch correct exception in clean cog (#2176)Gravatar ChrisJL-1/+1
Co-authored-by: Xithrius <[email protected]>
2022-05-27Remove rediscache from thread bumper now it's been migrated (#2161)Gravatar wookie184-4/+0
Co-authored-by: Xithrius <[email protected]>
2022-05-22Add request data as a sentry breadcrumb when clean cog failsGravatar Chris Lovering-17/+30
This is to aid in the debugging on an issue we have encountered
2022-05-22Use existing ResponseCodeError attrs rather than fetch againGravatar Chris Lovering-2/+5
This also updates the log string to use % based format strings, rather than a mix of f-string and % string which caused the %r to not work.
2022-05-22Updating and improving clarity in help documentation for !clean subcommandsGravatar Autonymic-9/+32
2022-05-22Ensure correct tag information is sent to statsdGravatar wookie184-1/+5
2022-05-22Ensure error uses correct maximum sizeGravatar wookie184-3/+4
2022-05-21Bump malformed API response from debug to error log (#2175)Gravatar wookie184-3/+5