aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* Make mod_log getter asyncmbaruh/modlog_fixGravatar mbaruh2022-04-21-23/+10
| | | | Loading order is not guaranteed. Sleep until the cog loads.
* Merge pull request #2136 from python-discord/fix-modpingsGravatar wookie1842022-04-20-1/+1
|\ | | | | Don't call broken ModPings scheduler
| * Don't call broken ModPings schedulerGravatar Chris Lovering2022-04-20-1/+1
|/ | | | This is being fixed in https://github.com/python-discord/bot/pull/2001
* Merge pull request #2118 from python-discord/bump-d.py-versionGravatar ChrisJL2022-04-20-1901/+1397
|\ | | | | Bump Discord.py to latest alpha and use BotBase from bot-core
| * Refactor a try/except that will never raiseGravatar Chris Lovering2022-04-20-6/+5
| |
| * Automatically determine number threads to use with pytestGravatar Chris Lovering2022-04-20-4/+4
| |
| * Don't use internal discord.py methods for available help channels messageGravatar Chris Lovering2022-04-20-10/+6
| |
| * Use fully qualified datetime.time()Gravatar Chris Lovering2022-04-20-2/+2
| | | | | | | | This is to remove possible confusion with time.time
| * remove unneeded import in testsGravatar Chris Lovering2022-04-20-1/+0
| |
| * Remove unneeded contextlib.suppressGravatar Chris Lovering2022-04-20-5/+4
| |
| * Don't hardcode ! as the bot prefix where possibleGravatar Chris Lovering2022-04-20-13/+16
| |
| * Pass the now required intents kwarg when creating MockBotGravatar Chris Lovering2022-04-19-0/+1
| |
| * Utilise new on_thread_create event for modlogGravatar Chris Lovering2022-04-19-6/+1
| |
| * Bump bot-core for new discord.py versionGravatar Chris Lovering2022-04-19-7/+7
| |
| * Ensure error has an attr before checking the value in metabaseGravatar Chris Lovering2022-04-19-1/+1
| |
| * Empty embed descriptions are now None, rather than a sentinalGravatar Chris Lovering2022-04-19-1/+1
| |
| * channel.history is now an async iterator, so has no .next() methodGravatar Chris Lovering2022-04-19-2/+3
| |
| * Don't pass unused param to infraction scheduler cog_loadGravatar Chris Lovering2022-04-19-1/+1
| |
| * Don't schedule a now non-existant taskGravatar Chris Lovering2022-04-19-7/+0
| |
| * Move api_client to a kwarg on creation of the BotGravatar Chris Lovering2022-04-19-8/+8
| |
| * Remove old task cancellations from modpings cog_unloadGravatar Chris Lovering2022-04-18-4/+1
| |
| * Remove unused instance var from OTN cogGravatar Chris Lovering2022-04-18-1/+0
| |
| * Add missing underscores to test function namesGravatar Chris Lovering2022-04-18-3/+3
| |
| * Test that sync cog syncers run when sync cog is loadedGravatar Chris Lovering2022-04-18-0/+13
| |
| * Refactor otn cog to use discord.py tasksGravatar Chris Lovering2022-04-18-35/+30
| |
| * Use discord.py's async cog loading for more cogsGravatar Chris Lovering2022-04-18-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.
| * Add cog_unload functions to cancel scheduled tasksGravatar Chris Lovering2022-04-18-0/+12
| |
| * Hardcode 8 test threads in CIGravatar Chris Lovering2022-04-18-1/+1
| | | | | | | | This is needed due to the removal of psutil
| * Move redis session reconnect to bot-coreGravatar Chris Lovering2022-04-18-26/+23
| |
| * Correct capitalisation of async and discord.pyGravatar Chris Lovering2022-04-18-3/+3
| |
| * Wait for mod log to load when syncing defcon settingsGravatar Chris Lovering2022-04-18-0/+16
| |
| * Remove usages of init_task in thread bumper cogGravatar Chris Lovering2022-04-18-8/+0
| |
| * Don't try to overwrite a read-only attr in help command testGravatar Chris Lovering2022-04-18-1/+1
| |
| * Remove sync cog init testGravatar Chris Lovering2022-04-18-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.
| * Update tests to use new async cog_load functionGravatar Chris Lovering2022-04-18-25/+17
| |
| * Update tests to use new async cog setup functionGravatar Chris Lovering2022-04-18-29/+28
| |
| * Update test helpers with breaking d.py changesGravatar Chris Lovering2022-04-18-1/+5
| | | | | | | | | | | | | | region was removed from the guild object, so this has been replaced with features add_cog is now async, so it is now an async_mock during tests Two new required voice_channel attrs were added channel.type is required to be set to ChannelType due to a new isinstance check in d.py
| * Adding missing kwargs required by BotBase in test helperGravatar Chris Lovering2022-04-18-0/+3
| |
| * Remove async stats and site api wrapperGravatar Chris Lovering2022-04-18-229/+22
| | | | | | | | We now source them from bot-core, so no need to have them here too.
| * Discord.py breaking changesGravatar Chris Lovering2022-04-18-7/+9
| | | | | | | | | | bot.http.send_message and edit_message now require a context manager to handle params. tasks.Loop no longer accepts a loop param on its init.
| * Use BotBase from bot-coreGravatar Chris Lovering2022-04-18-283/+84
| |
| * Move to async cog loadingGravatar Chris Lovering2022-04-18-223/+158
| |
| * Don't use discord.NoMoreItems as it's removedGravatar Chris Lovering2022-04-18-3/+3
| | | | | | | | This has been removed in favour of Python's built-in StopAsyncIteration error
| * Use bot-core scheduling and member util functionsGravatar Chris Lovering2022-04-18-323/+53
| |
| * Bump d.py and bot-coreGravatar Chris Lovering2022-04-18-7/+12
| |
| * Bump all deps and exact version pin.Gravatar Chris Lovering2022-04-18-303/+503
| | | | | | | | | | | | Exact versioning has been chosen to be more explicit in what versions we require. We will be using dependabot in github to ensure these versions are kept up to date.
| * Remove aio-pika and psutilGravatar Chris Lovering2022-04-18-381/+432
|/ | | | | | | | | aio-pika was used in the RabbitMQ cog (added in https://github.com/python-discord/bot/pull/90) which has since been deleted. It is no longer used. psutil was used to automatically determine how many threads to use when testing. However, this package has been quite slow to publish wheels for new Python versions. Since we don't use it for anything mission critical, I have removed it and hardcoded the number of threads to use when when testing to 8. An error is not raised it the number of threads used exceeds the number of actual threads available.
* Parse infraction search reason as regex before calling site (#2126)Gravatar ChrisJL2022-04-05-0/+6
| | | Previously this would raise an error within site due to the invalid regexp.
* Merge pull request #1943 from jonathan-d-zhang/type-hint-tagGravatar ChrisJL2022-04-03-0/+19
|\ | | | | Make type-hint tag
| * Merge branch 'main' into type-hint-tagGravatar ChrisJL2022-04-03-1926/+3812
| |\ | |/ |/|