| Commit message (Collapse) | Author | Age | Lines | ||
|---|---|---|---|---|---|
| ... | |||||
| | * | | | | Remove unneeded N802 noqas | 2022-08-14 | -5/+5 | ||
| | | | | | | | | | | | | | | | | | | | | | pep-naming now supports these functions being in camel case. | ||||
| | * | | | | Directly return the RedisSession on connection | 2022-08-14 | -2/+1 | ||
| | | | | | | |||||
| | * | | | | noqa false-positive B023 instances | 2022-08-14 | -4/+4 | ||
| | | | | | | | | | | | | | | | | | | | | | This was a new lint rule added in the latest bugbear. | ||||
| | * | | | | Stop creating futures in tests with no event loop running | 2022-08-14 | -6/+0 | ||
| | | | | | | |||||
| | * | | | | Add back a lock to DocRedisCache.set based on the DocItem | 2022-08-14 | -0/+8 | ||
| | | | | | | |||||
| | * | | | | Update any calls to Redis 'iscan' to the new name 'scan_iter' | 2022-08-14 | -2/+2 | ||
| | | | | | | |||||
| | * | | | | Convert key expiries to integers before passing to Redis | 2022-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 decorator | 2022-08-14 | -6/+1 | ||
| | | | | | | |||||
| | * | | | | No longer use the removed RedisSession connection object | 2022-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 changes | 2022-08-14 | -5/+6 | ||
| | | | | | | | | | | | | | | | | | | | | | This commit resolves all the breaking changes from the aioredis -> redis-py migration. | ||||
| | * | | | | Bump all deps to latest | 2022-08-14 | -85/+62 | ||
| | | | | | | |||||
| | * | | | | Bump bot-core version | 2022-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 tests | 2022-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 tests | 2022-08-14 | -3/+2 | ||
| | | | | | | | | | | | | | | | | | | | | | get_event_loop is deprecated as of 3.10 if there is no running loop. | ||||
| | * | | | | Bump to Python 3.10 | 2022-08-14 | -3/+3 | ||
| | | | | | | |||||
| | * | | | | Update the docker-compose snekbox dep for bot | 2022-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-cmd | 2022-08-03 | -2/+8 | ||
| |\ \ \ \ | |_|_|/ |/| | | | Updated `purge` to require at least one user | ||||
| | * | | | Improved `purge` help message | 2022-08-03 | -1/+1 | ||
| | | | | | |||||
| | * | | | Removed unused import | 2022-08-03 | -1/+1 | ||
| | | | | | |||||
| | * | | | Updated `purge` to require >1 users | 2022-08-03 | -3/+9 | ||
| |/ / / | |||||
| | | * | Removed unused datetime import | 2022-08-13 | -1/+0 | ||
| | | | | |||||
| | | * | Updated infractions display for updates | 2022-08-13 | -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 utcnow | 2022-08-13 | -1/+1 | ||
| | | | | | | | | | | | | | Corrected test case to use `datetime.utcnow()` to be consistent with target | ||||
| | | * | Updated previous tests to use subset method | 2022-08-06 | -7/+5 | ||
| | | | | |||||
| | | * | Refactored test to not use datetime patch | 2022-08-06 | -8/+11 | ||
| | | | | | | | | | | | | | - Used new method of dict subset comparison instead of datetime patching for better compat. with argument types | ||||
| | | * | Removed `inserted_at` fallback | 2022-08-06 | -13/+5 | ||
| | | | | | | | | | | | | | Given API updates, the fallback is not needed | ||||
| | | * | Changed datetime.now to arrow.utcnow | 2022-08-06 | -2/+2 | ||
| | | | | | | | | | | | | | - Used arrow.utcnow to reduce complexity and import | ||||
| | | * | Infraction duration fallback if no `last_applied` field | 2022-08-01 | -2/+13 | ||
| | | | | |||||
| | | * | Added microsecond rounding for `humanize_delta` | 2022-08-01 | -1/+16 | ||
| | | | | |||||
| | | * | Added new expiry usage to apply | 2022-07-31 | -1/+1 | ||
| | | | | | | | | | | | | | - Added new usage of `last_applied` time for duration calculation in `apply_infraction` | ||||
| | | * | Use `last_applied` to display duration | 2022-07-28 | -1/+2 | ||
| | | | | |||||
| | | * | Correct last_applied formatting | 2022-07-28 | -1/+1 | ||
| | | | | |||||
| | | * | Fixed tests | 2022-07-28 | -6/+7 | ||
| | | | | | | | | | | | | | - Corrected datetime patching | ||||
| | | * | Updated ban command docstring | 2022-07-28 | -2/+4 | ||
| | | | | | | | | | | | | | - Updated docstring to be more explicit on parameter fields | ||||
| | | * | Updated parameter names | 2022-07-28 | -5/+5 | ||
| | | | | | | | | | | | | | - Changed `duration` parameter names to `duration_or_expiry` to more accurately reflect options for help | ||||
| | | * | Added isoformat for test payload | 2022-07-28 | -1/+1 | ||
| | | | | |||||
| | | * | Fixed test patches | 2022-07-28 | -15/+17 | ||
| | | | | |||||
| | | * | Updated tests | 2022-07-28 | -17/+23 | ||
| | | | | | | | | | | | | | - Refactored tests for new time duration arguments | ||||
| | | * | Ran isort on imports | 2022-07-28 | -2/+2 | ||
| | | | | |||||
| | | * | Refactoring for DurationOrExpiry | 2022-07-28 | -25/+33 | ||
| | | | | |||||
| | | * | Added `DurationOrExpiry` type union | 2022-07-28 | -0/+1 | ||
| | |/ |/| | |||||
| * | | Merge pull request #2224 from python-discord/sid/feature/tags/print-return | 2022-07-24 | -0/+9 | ||
| |\ \ | | | | | | | feat(tags): add print-return tag | ||||
| | * \ | Merge branch 'main' into sid/feature/tags/print-return | 2022-07-24 | -8/+9 | ||
| | |\ \ | |/ / |/| | | |||||
| * | | | Merge pull request #2220 from python-discord/fix-bot-2168 | 2022-07-23 | -8/+9 | ||
| |\ \ \ | | | | | | | | | Update `!modpings off` confirmation to use a discord timestamp. | ||||
| | * \ \ | Merge branch 'main' into fix-bot-2168 | 2022-07-23 | -181/+1397 | ||
| | |\ \ \ | |/ / / |/| | | | |||||
| | * | | | Update `!modpings off` confirmation to use a discord timestamp. | 2022-07-23 | -8/+9 | ||
| | | | | | |||||
| | | * | | Merge branch 'main' into sid/feature/tags/print-return | 2022-07-21 | -28/+28 | ||
| | | |\ \ | |_|/ / |/| | | | |||||
| * | | | | Merge pull request #2225 from python-discord/snekbox-snags | 2022-07-21 | -28/+28 | ||
| |\ \ \ \ | | | | | | | | | | | Use the view clear on timeout feature from bot-core in snekbox | ||||
| | * | | | | Start 3.11 snekbox container by default | 2022-07-21 | -2/+2 | ||
| | | | | | | | | | | | | | | | | | | | | | Since snekbox uses 3.11 by default, it makes sense for this one to be started by default, and the 3.10 container to be opt-in. | ||||
| | * | | | | Update snekbox tests to expect new output | 2022-07-21 | -11/+13 | ||
| | | | | | | |||||