aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| | | * | | | | | | | | | | | | | | Remove vestigial RedisCache class definitionGravatar Sebastiaan Zeeff2020-09-19-681/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As we're now using the `async-rediscache` package, it's no longer necessary to keep the `RedisCache` defined in `bot.utils.redis_cache` around. I've removed the file containing it and the tests written for it. Signed-off-by: Sebastiaan Zeeff <[email protected]>
| | | * | | | | | | | | | | | | | | Use async-rediscache package for our redis cachesGravatar Sebastiaan Zeeff2020-09-19-163/+167
| | |/ / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I've migrated our redis caches over to the async-rediscache package that we've recently released (https://git.pydis.com/async-rediscache). The main functionality remains the same, although the package handles some things, like getting the active session, differently internally. The main changes you'll note for our bot are: - We create a RedisSession instance and ensure that it connects before we even create a Bot instance in `__main__.py`. - We are now actually using a connection pool instead of a single connection. - Our Bot subclass now has a new required kwarg: `redis_session`. - Bool values are now properly converted to and from typestrings. In addition, I've made sure that our MockBot passes a MagicMock for the new `redis_session` kwarg when creating a Bot instance for the spec_set. Signed-off-by: Sebastiaan Zeeff <[email protected]>
| | | * | | | | | | | | | | | | | Updated dependencies to match with master and include aioping.Gravatar Xithrius2020-09-22-6/+17
| | | | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | | | Whitelisted the bot_commands channel and all staff for other channels.Gravatar Xithrius2020-09-22-1/+3
| | | | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | | | Replacing the round function with a format specifier.Gravatar Xithrius2020-09-21-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Dennis Pham <[email protected]>
| | | * | | | | | | | | | | | | | Replacing the round function with a format specifier.Gravatar Xithrius2020-09-21-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Dennis Pham <[email protected]>
| | | * | | | | | | | | | | | | | Replacing the round function with a format specifier.Gravatar Xithrius2020-09-21-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Dennis Pham <[email protected]>
| | | * | | | | | | | | | | | | | Comment updated from "microseconds" to "seconds"Gravatar Xithrius2020-09-21-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Dennis Pham <[email protected]>
| | | * | | | | | | | | | | | | | Description renamed to avoid verbosity.Gravatar Xithrius2020-09-21-1/+1
| | | | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | | | Added period to docstring.Gravatar Xithrius2020-09-21-1/+1
| | | | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | | | Created the Latency cog to measure ping in milliseconds.Gravatar Xithrius2020-09-21-0/+57
| | | | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | | | Updated dependencies to include aioping.Gravatar Xithrius2020-09-21-114/+133
| |_|/ / / / / / / / / / / / / / |/| | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | Merge pull request #1167 from Numerlor/eval-escape-pasteGravatar Mark2020-09-21-2/+3
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upload eval output with codeblock escapes to pastebin
| * | | | | | | | | | | | | | | | Accommodate new upload behaviour in testsGravatar Numerlor2020-09-21-2/+2
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Upload output with codeblock escapes to pastebinGravatar Numerlor2020-09-21-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The output can't be sent to discord, but it won't affect anything in the paste service and can safely be uploaded to it.
* | | | | | | | | | | | | | | | | Merge pull request #1150 from python-discord/feat/backend/217/has_any_roleGravatar Mark2020-09-21-180/+173
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|/ / / / / / / / / / / |/| | | | | | | | | | | | | | | | Implement with(out)_role checks and decorators using has_any_role
| * | | | | | | | | | | | | | | | Fix conflicts caused by #1103Gravatar MarkKoz2020-09-21-526/+1662
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bunch of things were renamed, which mainly caused import conflicts.
* | | | | | | | | | | | | | | | | Merge PR #817: Write tests for moderation utilsGravatar kwzrd2020-09-21-12/+384
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Fix mod utils tests patch locationsGravatar ks1292020-09-21-4/+4
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Fix import order of mod utils testsGravatar ks1292020-09-21-1/+1
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Fix import path of mod utilsGravatar ks1292020-09-21-1/+1
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Fix end of file of mod utils testsGravatar ks1292020-09-21-1/+1
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Merge branch 'master' into mod-utils-testsGravatar ks1292020-09-21-3062/+6783
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / / / / |/| | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Apply recent changes of notify infraction to testGravatar ks1292020-09-20-3/+2
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Try to fix location from where post infraction test get IDGravatar ks1292020-09-20-2/+2
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Remove useless textwrap importGravatar ks1292020-09-20-1/+0
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Remove special shortening from reasonGravatar ks1292020-09-20-1/+1
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Shorten infraction text when any other field than reason is too longGravatar ks1292020-09-13-0/+4
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Restore newlines for `notify_infraction` embed descriptionGravatar Karlis S2020-07-06-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Truncate reason instead full content to avoid removing newlines
| * | | | | | | | | | | | | | | | Remove unnecessary if statement from send_private_embed testGravatar ks1292020-06-25-2/+1
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Reorder tests order to match with original fileGravatar ks1292020-06-24-65/+65
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Remove unnecessary `textwrap.dedent` in `notify_infraction`Gravatar ks1292020-06-24-6/+4
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Move infraction description template back to main file, apply it thereGravatar ks1292020-06-24-16/+18
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Fix test case key name in `test_notify_infraction`Gravatar ks1292020-06-24-1/+1
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Add other parameters to `test_post_user` `not_user` mockGravatar ks1292020-06-24-5/+5
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Remove unnecessary `log.debug` assert in `test_post_user`Gravatar ks1292020-06-24-8/+1
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Merge 2 if-else branches is `test_post_user`Gravatar ks1292020-06-24-5/+2
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Replace `True` test with `In` test on `test_post_user`Gravatar ks1292020-06-24-1/+1
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Sync keys, variable names and kwargs in `test_post_user`Gravatar ks1292020-06-24-12/+12
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Remove case variable definitions in `test_notify_infraction`Gravatar ks1292020-06-24-10/+6
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Mod Utils Tests: Remove unnecessary `user` from test nameGravatar ks1292020-06-24-1/+1
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Mod Utils Tests: Change `True` assert to `In` assert for message checkGravatar ks1292020-06-24-2/+3
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Mod Utils Tests: Move some test cases to `namedtuple`Gravatar ks1292020-06-24-66/+29
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Mod Utils Tests: Move INFRACTION_DESCRIPTION_TEMPLATE to tests fileGravatar ks1292020-06-24-11/+11
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Mod Utils: Remove unnecessary line splitting on embed footer addingGravatar ks1292020-06-24-3/+1
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Increase coverage of moderation utils testsGravatar ks1292020-06-12-5/+36
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Implement description shortening to infraction notify testsGravatar ks1292020-06-12-8/+27
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Remove deprecated avatar hash in `test_post_user`Gravatar ks1292020-06-12-3/+1
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Mod Utils: Add missing import what was removedGravatar ks1292020-06-11-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Restore `textwrap` import that was removed with merge.
| * | | | | | | | | | | | | | | | Merge branch 'master' into mod-utils-testsGravatar ks1292020-06-11-1041/+2306
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \