aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
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 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-20Refactor a try/except that will never raiseGravatar Chris Lovering-6/+5
2022-04-20Automatically determine number threads to use with pytestGravatar Chris Lovering-4/+4
2022-04-20Don't use internal discord.py methods for available help channels messageGravatar Chris Lovering-10/+6
2022-04-20Use fully qualified datetime.time()Gravatar Chris Lovering-2/+2
This is to remove possible confusion with time.time
2022-04-20remove unneeded import in testsGravatar Chris Lovering-1/+0
2022-04-20Remove unneeded contextlib.suppressGravatar Chris Lovering-5/+4
2022-04-20Don't hardcode ! as the bot prefix where possibleGravatar Chris Lovering-13/+16
2022-04-19LintingGravatar NovialRiptide-4/+8
Co-Authored-By: ChrisJL <[email protected]>
2022-04-19Pass the now required intents kwarg when creating MockBotGravatar Chris Lovering-0/+1
2022-04-19Utilise new on_thread_create event for modlogGravatar Chris Lovering-6/+1
2022-04-19Bump bot-core for new discord.py versionGravatar Chris Lovering-7/+7
2022-04-19Ensure error has an attr before checking the value in metabaseGravatar Chris Lovering-1/+1
2022-04-19Empty embed descriptions are now None, rather than a sentinalGravatar Chris Lovering-1/+1
2022-04-19channel.history is now an async iterator, so has no .next() methodGravatar Chris Lovering-2/+3
2022-04-19Don't pass unused param to infraction scheduler cog_loadGravatar Chris Lovering-1/+1
2022-04-19Don't schedule a now non-existant taskGravatar Chris Lovering-7/+0
2022-04-19Move api_client to a kwarg on creation of the BotGravatar Chris Lovering-8/+8
2022-04-18Rewrote set_slowmode() changesGravatar NovialRiptide-7/+5
2022-04-18Added an option to use 0s as an argumentGravatar NovialRiptide-3/+8
2022-04-18Add discord.Thread to slowmode cog channel convertersGravatar Richard Si-5/+7
Important as we (further) rollout threads and forum channels!
2022-04-18Remove old task cancellations from modpings cog_unloadGravatar Chris Lovering-4/+1
2022-04-18Remove unused instance var from OTN cogGravatar Chris Lovering-1/+0
2022-04-18Add missing underscores to test function namesGravatar Chris Lovering-3/+3
2022-04-18Test that sync cog syncers run when sync cog is loadedGravatar Chris Lovering-0/+13
2022-04-18Refactor otn cog to use discord.py tasksGravatar Chris Lovering-35/+30
2022-04-18Use discord.py's async cog loading for more cogsGravatar Chris Lovering-15/+6
In the case of the docs cog, the lock is not needed on the cog_load function as it is ran before the bot even starts listening for commands.
2022-04-18Add cog_unload functions to cancel scheduled tasksGravatar Chris Lovering-0/+12
2022-04-18Hardcode 8 test threads in CIGravatar Chris Lovering-1/+1
This is needed due to the removal of psutil
2022-04-18Move redis session reconnect to bot-coreGravatar Chris Lovering-26/+23
2022-04-18Correct capitalisation of async and discord.pyGravatar Chris Lovering-3/+3
2022-04-18Wait for mod log to load when syncing defcon settingsGravatar Chris Lovering-0/+16
2022-04-18Remove usages of init_task in thread bumper cogGravatar Chris Lovering-8/+0
2022-04-18Don't try to overwrite a read-only attr in help command testGravatar Chris Lovering-1/+1
2022-04-18Remove sync cog init testGravatar Chris Lovering-17/+0
Discord.py now implicitly calls the new async cog_load function from within it's internals on load. There is no longer a need to test that this happens.
2022-04-18Update tests to use new async cog_load functionGravatar Chris Lovering-25/+17
2022-04-18Update tests to use new async cog setup functionGravatar Chris Lovering-29/+28