aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2022-06-19filter out headerlinks for descriptionsGravatar Numerlor-0/+5
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
2022-04-29Update wording for or-gotcha tagGravatar Mustafa Quraish-0/+1
2022-04-30Expire key cache values when redis key expiresGravatar Numerlor-3/+11
2022-04-29remove leftover task cancelGravatar Numerlor-1/+0
The task is no longer created in the cog
2022-04-29clear keys from set expires after deleting them from redisGravatar Numerlor-1/+5
if the expire "cache" is not reset, the class assumes an expire is set, even though no expire was set for the key
2022-04-29revert bump to markdownify versionGravatar Numerlor-12/+8
The new versions introduce conversions which causes the doc command embed to be formatted improperly