aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
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-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-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-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
2022-04-28Remove Explicit Support For Standalone BannersGravatar Hassan Abouelela-10/+5
Force all banners to be structured under directories instead of as standalone files. Signed-off-by: Hassan Abouelela <[email protected]>
2022-04-28Use async with Messageable.typing() everywhereGravatar Chris Lovering-1/+1
Closes BOT-33Z Closes #2154 With the latest version of discord.py support for the with Messageable.typingn() was droped, in favour of only using async with.
2022-04-27Add Support For Multiple BannersGravatar Hassan Abouelela-71/+76
Adds support for having multiple banners which rotate in a single event, much like icons currently do. There are almost no code changes here as most of the required logic was already implemented, and was standardized to work for both icons and banners. Signed-off-by: Hassan Abouelela <[email protected]>
2022-04-26Manually chunk guild if not chunked 30s after startupGravatar Chris Lovering-11/+15
2022-04-26Bump d.py and bot-coreGravatar Chris Lovering-7/+7
one of the commits in this bump dynamically extends the timeout of Guild.chunk() based on the number or members, so it should actually work on our guild now.
2022-04-26Bump bot base so a real statsd client is actually createdGravatar Chris Lovering-4/+4
2022-04-25Add Timeout To The Sync CogGravatar Hassan Abouelela-2/+10
Adds a 30-minute timeout while waiting for the guild to be chunked in the sync cog, after which the cog is not loaded. Signed-off-by: Hassan Abouelela <[email protected]>
2022-04-23Speed Up Sync Cog LoadingGravatar Hassan Abouelela-3/+18
The user syncer was blocking the startup of the sync cog due to having to perform thousands of pointless member fetch requests. This speeds up that process by increasing the probability that the cache is up-to-date using `Guild.chunked`, and limiting the fetches to members who were in the guild during the previous sync only. Co-authored-by: ChrisJL <[email protected]> Co-authored-by: wookie184 <[email protected]> Signed-off-by: Hassan Abouelela <[email protected]>
2022-04-21Add support for BIG SOLIDUS unicode characters in off topic names (#2146)Gravatar mina-2/+2
Make `ALLOWED_CHARACTERS` a raw string to account for slashes
2022-04-22Make modpings rescheduling robust to unfilled cacheGravatar mbaruh-2/+14
Additionally, this adds a check which will remove entries in the redis cache of former moderators.
2022-04-22Make extension management asyncGravatar mbaruh-9/+9
This is necessary after cog loading was made async in a new discord.py version
2022-04-21Bump bot-coreGravatar Chris Lovering-3/+3
This change loads each cog in their own task, meaning if one fails, others still load.
2022-04-21Update CODEOWNERSGravatar Chris Lovering-2/+0
2022-04-21Bump bot-core which has unqualify in the utils namespaceGravatar Chris Lovering-5/+5
2022-04-21Use the extensions list & util from bot-coreGravatar Chris Lovering-43/+8
2022-04-21Make mod_log getter asyncGravatar mbaruh-23/+10
Loading order is not guaranteed. Sleep until the cog loads.
2022-04-21Deal with the clean invoke being delete before replyingGravatar Chris Lovering-1/+4
Closes #2141 Closes BOT-33P
2022-04-21wait_for event param is now positional onlyGravatar Chris Lovering-1/+1
Closes #2139 Closes BOT-33N
2022-04-20Don't call broken ModPings schedulerGravatar Chris Lovering-1/+1
This is being fixed in https://github.com/python-discord/bot/pull/2001
2022-04-20Only suppress 404s from site when checking for bumped threadsGravatar Chris Lovering-4/+6
2022-04-20Only call unarchive threads if there are threads to sendGravatar Chris Lovering-1/+2
2022-04-20Use site api over redis for thread bumpsGravatar Chris Lovering-9/+25
2022-04-20Output max 10 bumped threads on listGravatar Chris Lovering-1/+1