aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
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-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-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
2022-05-11Strip Trailing Slashes From Invite FilterGravatar Hassan Abouelela-1/+1
Removes trailing slashes from invites in the invite filter to prevent false positives. Signed-off-by: Hassan Abouelela <[email protected]>
2022-05-11Bump Bot Core to v7.0.0Gravatar Hassan Abouelela-78/+82
Bumps the botcore version to v7.0.0, and implements the changes required by the breaking fix documented in the changelog for `utils.regex.DISCORD_INVITE`. Signed-off-by: Hassan Abouelela <[email protected]>
2022-05-02Don't decode empty content as json in thread bumperGravatar Chris Lovering-15/+20
Closes #2162 Closes BOT-343 self.bot.api_client.request can not be used to check if a thread id exists in the bumped thread list on site, as self.bot.api_client.request() always attempts to decode the response as json. The thread bump viewset in site returns a 204 if the given thread exists with no content, so this does not work.
2022-05-02Fix testsGravatar wookie184-10/+17
2022-05-02Update functions using send_to_paste_service utilGravatar wookie184-28/+51
2022-05-02Add contents length validation to send_to_paste_service utilGravatar wookie184-6/+24
It now raises errors instead of returning None on failing
2022-05-01Added Messages Content to the `!intents` tag (#2159)Gravatar Krypton-1/+1
* Update intents.md * Minor wording changes Co-authored-by: wookie184 <[email protected]>
2022-04-30Add more logging to DocRedisCacheGravatar Numerlor-0/+5
2022-04-30Fix set_expires being set to a set instead of a dictGravatar Numerlor-1/+3
2022-04-30expire internal cache according to redis' TTL instead of always a weekGravatar Numerlor-7/+14