aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| | | * | | | | | | | | | | | Infraction duration fallback if no `last_applied` fieldGravatar ionite342022-08-01-2/+13
| | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | Added microsecond rounding for `humanize_delta`Gravatar ionite342022-08-01-1/+16
| | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | Added new expiry usage to applyGravatar ionite342022-07-31-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added new usage of `last_applied` time for duration calculation in `apply_infraction`
| | | * | | | | | | | | | | | Use `last_applied` to display durationGravatar ionite342022-07-28-1/+2
| | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | Correct last_applied formattingGravatar ionite342022-07-28-1/+1
| | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | Fixed testsGravatar ionite342022-07-28-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Corrected datetime patching
| | | * | | | | | | | | | | | Updated ban command docstringGravatar ionite342022-07-28-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Updated docstring to be more explicit on parameter fields
| | | * | | | | | | | | | | | Updated parameter namesGravatar ionite342022-07-28-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Changed `duration` parameter names to `duration_or_expiry` to more accurately reflect options for help
| | | * | | | | | | | | | | | Added isoformat for test payloadGravatar ionite342022-07-28-1/+1
| | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | Fixed test patchesGravatar ionite342022-07-28-15/+17
| | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | Updated testsGravatar ionite342022-07-28-17/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Refactored tests for new time duration arguments
| | | * | | | | | | | | | | | Ran isort on importsGravatar ionite342022-07-28-2/+2
| | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | Refactoring for DurationOrExpiryGravatar ionite342022-07-28-25/+33
| | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | Added `DurationOrExpiry` type unionGravatar ionite342022-07-28-0/+1
| | | |/ / / / / / / / / / /
| | | | | * | | | | | | | | Display mention & str of the mentionable object in `!remind list`.Gravatar Izan2022-09-20-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added so that the user still gets information on what the mention is, when the mention doesn't render (due to client cache etc.)
| | | | | * | | | | | | | | Merge remote-tracking branch 'origin/bot-2231-enhancements' into ↵Gravatar Izan2022-09-17-1476/+340
| | | | | |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bot-2231-enhancements
| | | | | | * \ \ \ \ \ \ \ \ Merge branch 'main' into bot-2231-enhancementsGravatar TizzySaurus2022-08-14-1476/+340
| | | | | | |\ \ \ \ \ \ \ \ \ | | |_|_|_|_|/ / / / / / / / / | |/| | | | | | | | | | | | |
| * | | | | | | | | | | | | | 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
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | Add back a lock to DocRedisCache.set based on the DocItemGravatar Chris Lovering2022-08-14-0/+8
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | Update any calls to Redis 'iscan' to the new name 'scan_iter'Gravatar Chris Lovering2022-08-14-2/+2
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | Convert key expiries to integers before passing to RedisGravatar Chris Lovering2022-08-14-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a float is given, Redis will assume the expiry is in milliseconds and must be multiplied by 1000. This is undesirable, as we are already passing the expiry in seconds.
| | * | | | | | | | | | | | | Remove usages of the removed namespace_lock decoratorGravatar Chris Lovering2022-08-14-6/+1
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | No longer use the removed RedisSession connection objectGravatar Chris Lovering2022-08-14-51/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has been abstracted away, the correct way to do this now is to directly access the client.
| | * | | | | | | | | | | | | redis-py breaking changesGravatar Chris Lovering2022-08-14-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit resolves all the breaking changes from the aioredis -> redis-py migration.
| | * | | | | | | | | | | | | Bump all deps to latestGravatar Chris Lovering2022-08-14-85/+62
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | Bump bot-core versionGravatar Chris Lovering2022-08-14-1216/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This bump comes with a move to redis-py over aioredis. As such, pin new transitive dependancies to exact versions.
| | * | | | | | | | | | | | | Remove warnings in error handler testsGravatar Chris Lovering2022-08-14-56/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These warnings were caused by the setup coro from error_handler.py being imported directly, causing a warning about an un-awaited coro whenever the Cog was accessed from the same file.
| | * | | | | | | | | | | | | Remove call to get_event_loop in testsGravatar Chris Lovering2022-08-14-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | get_event_loop is deprecated as of 3.10 if there is no running loop.
| | * | | | | | | | | | | | | Bump to Python 3.10Gravatar Chris Lovering2022-08-14-3/+3
| | | | | | | | | | | | | | |
| | * | | | | | | | | | | | | Update the docker-compose snekbox dep for botGravatar Chris Lovering2022-08-14-1/+1
| |/ / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The bot service was still configured to depend on the snekbox service, even though this service is now optional, in favour of the snekbox-311 service.
| * | | | | | | | | | | | | Merge pull request #2240 from python-discord/2238-purge-cmdGravatar mina2022-08-03-2/+8
| |\ \ \ \ \ \ \ \ \ \ \ \ \ | | |_|/ / / / / / / / / / / | |/| | | | | | | | | | | | Updated `purge` to require at least one user
| | * | | | | | | | | | | | Improved `purge` help messageGravatar ionite342022-08-03-1/+1
| | | | | | | | | | | | | |
| | * | | | | | | | | | | | Removed unused importGravatar ionite342022-08-03-1/+1
| | | | | | | | | | | | | |
| | * | | | | | | | | | | | Updated `purge` to require >1 usersGravatar ionite342022-08-03-3/+9
| |/ / / / / / / / / / / /
| | | * / / / / / / / / / Address ReviewGravatar Izan2022-09-17-2/+6
| | | |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Convert `ids` to a set to remove duplicates - Limit the amount of reminders you can delete at once to 5 in order to prevent API spam
| | | * | | | | | | | | Display mentions instead of name attribute in `!reminder list`Gravatar Izan2022-07-25-3/+2
| | | | | | | | | | | |
| | | * | | | | | | | | Add ability to delete multiple remindersGravatar Izan2022-07-25-13/+58
| | |/ / / / / / / / / | |/| | | | | | | | |
| * | | | | | | | | | Merge pull request #2224 from python-discord/sid/feature/tags/print-returnGravatar ChrisJL2022-07-24-0/+9
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | feat(tags): add print-return tag
| | * \ \ \ \ \ \ \ \ \ Merge branch 'main' into sid/feature/tags/print-returnGravatar mina2022-07-24-8/+9
| | |\ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / | |/| | | | | | | | | |
| * | | | | | | | | | | Merge pull request #2220 from python-discord/fix-bot-2168Gravatar wookie1842022-07-23-8/+9
| |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | Update `!modpings off` confirmation to use a discord timestamp.
| | * \ \ \ \ \ \ \ \ \ \ Merge branch 'main' into fix-bot-2168Gravatar wookie1842022-07-23-181/+1397
| | |\ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / | |/| | | | | | | | | | |
| | * | | | | | | | | | | Update `!modpings off` confirmation to use a discord timestamp.Gravatar Izan2022-07-23-8/+9
| | | | | | | | | | | | |