Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Make mod_log getter asyncmbaruh/modlog_fix | 2022-04-21 | -23/+10 | |
| | | | | Loading order is not guaranteed. Sleep until the cog loads. | |||
* | Merge pull request #2136 from python-discord/fix-modpings | 2022-04-20 | -1/+1 | |
|\ | | | | | Don't call broken ModPings scheduler | |||
| * | Don't call broken ModPings scheduler | 2022-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-version | 2022-04-20 | -1901/+1397 | |
|\ | | | | | Bump Discord.py to latest alpha and use BotBase from bot-core | |||
| * | Refactor a try/except that will never raise | 2022-04-20 | -6/+5 | |
| | | ||||
| * | Automatically determine number threads to use with pytest | 2022-04-20 | -4/+4 | |
| | | ||||
| * | Don't use internal discord.py methods for available help channels message | 2022-04-20 | -10/+6 | |
| | | ||||
| * | Use fully qualified datetime.time() | 2022-04-20 | -2/+2 | |
| | | | | | | | | This is to remove possible confusion with time.time | |||
| * | remove unneeded import in tests | 2022-04-20 | -1/+0 | |
| | | ||||
| * | Remove unneeded contextlib.suppress | 2022-04-20 | -5/+4 | |
| | | ||||
| * | Don't hardcode ! as the bot prefix where possible | 2022-04-20 | -13/+16 | |
| | | ||||
| * | Pass the now required intents kwarg when creating MockBot | 2022-04-19 | -0/+1 | |
| | | ||||
| * | Utilise new on_thread_create event for modlog | 2022-04-19 | -6/+1 | |
| | | ||||
| * | Bump bot-core for new discord.py version | 2022-04-19 | -7/+7 | |
| | | ||||
| * | Ensure error has an attr before checking the value in metabase | 2022-04-19 | -1/+1 | |
| | | ||||
| * | Empty embed descriptions are now None, rather than a sentinal | 2022-04-19 | -1/+1 | |
| | | ||||
| * | channel.history is now an async iterator, so has no .next() method | 2022-04-19 | -2/+3 | |
| | | ||||
| * | Don't pass unused param to infraction scheduler cog_load | 2022-04-19 | -1/+1 | |
| | | ||||
| * | Don't schedule a now non-existant task | 2022-04-19 | -7/+0 | |
| | | ||||
| * | Move api_client to a kwarg on creation of the Bot | 2022-04-19 | -8/+8 | |
| | | ||||
| * | Remove old task cancellations from modpings cog_unload | 2022-04-18 | -4/+1 | |
| | | ||||
| * | Remove unused instance var from OTN cog | 2022-04-18 | -1/+0 | |
| | | ||||
| * | Add missing underscores to test function names | 2022-04-18 | -3/+3 | |
| | | ||||
| * | Test that sync cog syncers run when sync cog is loaded | 2022-04-18 | -0/+13 | |
| | | ||||
| * | Refactor otn cog to use discord.py tasks | 2022-04-18 | -35/+30 | |
| | | ||||
| * | Use discord.py's async cog loading for more cogs | 2022-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 tasks | 2022-04-18 | -0/+12 | |
| | | ||||
| * | Hardcode 8 test threads in CI | 2022-04-18 | -1/+1 | |
| | | | | | | | | This is needed due to the removal of psutil | |||
| * | Move redis session reconnect to bot-core | 2022-04-18 | -26/+23 | |
| | | ||||
| * | Correct capitalisation of async and discord.py | 2022-04-18 | -3/+3 | |
| | | ||||
| * | Wait for mod log to load when syncing defcon settings | 2022-04-18 | -0/+16 | |
| | | ||||
| * | Remove usages of init_task in thread bumper cog | 2022-04-18 | -8/+0 | |
| | | ||||
| * | Don't try to overwrite a read-only attr in help command test | 2022-04-18 | -1/+1 | |
| | | ||||
| * | Remove sync cog init test | 2022-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 function | 2022-04-18 | -25/+17 | |
| | | ||||
| * | Update tests to use new async cog setup function | 2022-04-18 | -29/+28 | |
| | | ||||
| * | Update test helpers with breaking d.py changes | 2022-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 helper | 2022-04-18 | -0/+3 | |
| | | ||||
| * | Remove async stats and site api wrapper | 2022-04-18 | -229/+22 | |
| | | | | | | | | We now source them from bot-core, so no need to have them here too. | |||
| * | Discord.py breaking changes | 2022-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-core | 2022-04-18 | -283/+84 | |
| | | ||||
| * | Move to async cog loading | 2022-04-18 | -223/+158 | |
| | | ||||
| * | Don't use discord.NoMoreItems as it's removed | 2022-04-18 | -3/+3 | |
| | | | | | | | | This has been removed in favour of Python's built-in StopAsyncIteration error | |||
| * | Use bot-core scheduling and member util functions | 2022-04-18 | -323/+53 | |
| | | ||||
| * | Bump d.py and bot-core | 2022-04-18 | -7/+12 | |
| | | ||||
| * | Bump all deps and exact version pin. | 2022-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 psutil | 2022-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) | 2022-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-tag | 2022-04-03 | -0/+19 | |
|\ | | | | | Make type-hint tag | |||
| * | Merge branch 'main' into type-hint-tag | 2022-04-03 | -1926/+3812 | |
| |\ | |/ |/| |