aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| * | | | | | | | | | | | | | | | | fix: change use of arrow to datetime and change docstring wordingGravatar dawnofmidnight2022-08-15-5/+5
| | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | feat: command for banning compromised accountsGravatar dawnofmidnight2022-08-15-0/+7
| | | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | | Fix incident tests.Gravatar Izan2022-08-15-13/+25
| | | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | | Merge branch 'main' into incident-archive-msg-improvementsGravatar TizzySaurus2022-08-14-3856/+3624
| | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | |_|/ / / / / / / / / / / / / | | | |/| | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | | Address ReviewsGravatar Izan2022-07-14-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Use the more concise DATETIME timestamp instead of both a DATE and a TIME timestamp. - Remove underline from the "Reported ..." section at the bottom of the embed. - Re-add time of action/rejection timestamp to footer of embed.
| | * | | | | | | | | | | | | | | | Fix testsGravatar Izan2022-01-01-6/+18
| | | | | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | | | | Incident archive improvementsGravatar Izan2022-01-01-6/+16
| | | | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | Duration for DM changed to Edited flagGravatar ionite342022-08-19-10/+7
| | | | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | Made DM duration remaining optional with resendGravatar ionite342022-08-18-6/+8
| | | | | | | | | | | | | | | | | |
| | | | * | | | | | | | | | | | | | Merge branch 'infraction-durations' of https://github.com/python-discord/bot ↵Gravatar ionite342022-08-18-1518/+382
| | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into infraction-durations
| | | | | * \ \ \ \ \ \ \ \ \ \ \ \ \ Merge branch 'main' into infraction-durationsGravatar Ionite2022-08-17-3/+7
| | | | | |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|/ / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | | | Merge pull request #2251 from python-discord/automute-messageGravatar mina2022-08-17-3/+7
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|/ / / / / / / / / / |/| | | | | | | | | | | | | | | | | | Added mod alerted notice to auto-infractions
| * | | | | | | | | | | | | | | | | | Merge branch 'main' into automute-messageGravatar mina2022-08-17-42/+37
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | Added article to automute messageGravatar ionite342022-08-16-1/+1
| | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | Added newlines and non-mentioned mod roleGravatar ionite342022-08-16-4/+5
| | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | Added mod alerted notice to auto-infractionsGravatar ionite342022-08-15-1/+4
| |/ / / / / / / / / / / / / / / / /
| | | | | * | | | | | | | | | | | | Removed unused datetime importGravatar ionite342022-08-16-1/+0
| | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | Updated infractions display for updatesGravatar ionite342022-08-16-23/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added new infraction delta calculations to updated infractions. - Updates of infraction durations now also update the `last_applied` field. - `inserted_at` is now sent by the bot client to denote the original unmodified infraction application time
| | | | | * | | | | | | | | | | | | Corrected test use of utcnowGravatar ionite342022-08-16-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Corrected test case to use `datetime.utcnow()` to be consistent with target
| | | | | * | | | | | | | | | | | | Updated previous tests to use subset methodGravatar ionite342022-08-16-7/+5
| | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | Refactored test to not use datetime patchGravatar ionite342022-08-16-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Used new method of dict subset comparison instead of datetime patching for better compat. with argument types
| | | | | * | | | | | | | | | | | | Removed `inserted_at` fallbackGravatar ionite342022-08-16-13/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Given API updates, the fallback is not needed
| | | | | * | | | | | | | | | | | | Changed datetime.now to arrow.utcnowGravatar ionite342022-08-16-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Used arrow.utcnow to reduce complexity and import
| | | | | * | | | | | | | | | | | | Infraction duration fallback if no `last_applied` fieldGravatar ionite342022-08-16-2/+13
| | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | Added microsecond rounding for `humanize_delta`Gravatar ionite342022-08-16-1/+16
| | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | Added new expiry usage to applyGravatar ionite342022-08-16-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added new usage of `last_applied` time for duration calculation in `apply_infraction`
| | | | | * | | | | | | | | | | | | Use `last_applied` to display durationGravatar ionite342022-08-16-1/+2
| | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | Correct last_applied formattingGravatar ionite342022-08-16-1/+1
| | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | Fixed testsGravatar ionite342022-08-16-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Corrected datetime patching
| | | | | * | | | | | | | | | | | | Updated ban command docstringGravatar ionite342022-08-16-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Updated docstring to be more explicit on parameter fields
| | | | | * | | | | | | | | | | | | Updated parameter namesGravatar ionite342022-08-16-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Changed `duration` parameter names to `duration_or_expiry` to more accurately reflect options for help
| | | | | * | | | | | | | | | | | | Added isoformat for test payloadGravatar ionite342022-08-16-1/+1
| | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | Fixed test patchesGravatar ionite342022-08-16-15/+17
| | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | Updated testsGravatar ionite342022-08-16-17/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Refactored tests for new time duration arguments
| | | | | * | | | | | | | | | | | | Ran isort on importsGravatar ionite342022-08-16-2/+2
| | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | Refactoring for DurationOrExpiryGravatar ionite342022-08-16-25/+33
| | | | | | | | | | | | | | | | | |
| | | | | * | | | | | | | | | | | | Added `DurationOrExpiry` type unionGravatar ionite342022-08-16-0/+1
| |_|_|_|/ / / / / / / / / / / / / |/| | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | Merge pull request #2252 from python-discord/Resolve-silence-test-failuresGravatar ChrisJL2022-08-15-42/+37
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | Correctly initialise redis tests
| * | | | | | | | | | | | | | | | Correctly initialise redis testsGravatar Chris Lovering2022-08-15-42/+37
|/ / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Calling the cog_load from within the setUp function resulted in interaction with a RedisSession before it was initialised. This wasn't noticed in CI as it only error under certain concurrency timings due to xdist. To resolve this, we moved the setup and async setup logic to a base class. Co-authored-by: Hassan Abouelela <[email protected]>
* | | | | | | | | | | | | | | | Merge pull request #2249 from python-discord/redis-fixGravatar Boris Muratov2022-08-14-0/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | Globally decode binary responses from redis to strings
| * | | | | | | | | | | | | | | Globally decode binary responses from redis to stringsGravatar Chris Lovering2022-08-14-0/+1
|/ / / / / / / / / / / / / / /
* | | | | | | | | | | | | | | Merge pull request #2229 from python-discord/py3.10-rediscacheGravatar ChrisJL2022-08-14-1474/+332
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|/ / / / / / / / / / / |/| | | | | | | | | | | | | |
| * | | | | | | | | | | | | | revert bump to markdownify versionGravatar Chris Lovering2022-08-14-10/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new versions introduce conversions which causes the doc command embed to be formatted improperly
| * | | | | | | | | | | | | | Use RedisTestCase helper class for both Incidents and Silence test cases.Gravatar Chris Lovering2022-08-14-36/+6
| | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | Add a new test helper for managing redis sessionsGravatar Chris Lovering2022-08-14-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This helper ensures that a fresh RedisSession is given to each test case that inherits from it.
| * | | | | | | | | | | | | | Bump bot-core to full 8.0.0 releaseGravatar Chris Lovering2022-08-14-8/+7
| | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | Remove unneeded N802 noqasGravatar Chris Lovering2022-08-14-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pep-naming now supports these functions being in camel case.
| * | | | | | | | | | | | | | Directly return the RedisSession on connectionGravatar Chris Lovering2022-08-14-2/+1
| | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | noqa false-positive B023 instancesGravatar Chris Lovering2022-08-14-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was a new lint rule added in the latest bugbear.
| * | | | | | | | | | | | | | Stop creating futures in tests with no event loop runningGravatar Chris Lovering2022-08-14-6/+0
| | | | | | | | | | | | | | |