aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* Adds Voice Test Cases To Already Silenced TestGravatar Hassan Abouelela2021-05-04-6/+8
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Copy Existing Text Channel Cache Tests For VoiceGravatar Hassan Abouelela2021-05-04-82/+97
| | | | | | | Duplicates existing silence and unsilence cache tests for voice channels. Signed-off-by: Hassan Abouelela <[email protected]>
* Uses Async Asserts Where PossibleGravatar Hassan Abouelela2021-04-24-21/+21
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Removes Unnecessary Members In Silence TestsGravatar Hassan Abouelela2021-04-21-16/+14
| | | | | | | Reduces the number of members created for each test to the bare minimum required. Signed-off-by: Hassan Abouelela <[email protected]>
* Merge branch 'main' into voicechannel-muteGravatar Hassan Abouelela2021-04-20-874/+2145
|\
| * Merge pull request #1535 from francisdbillones/patch-1Gravatar Boris Muratov2021-04-20-1/+1
| |\ | | | | | | Fix zen's negative indexing
| | * Merge branch 'main' into patch-1Gravatar Boris Muratov2021-04-20-14/+198
| | |\ | | |/ | |/|
| * | Merge pull request #1543 from python-discord/test-async-mockGravatar Hassan Abouelela2021-04-20-1/+1
| |\ \ | | | | | | | | Tests: AsyncMock is now in the standard library!
| | * \ Merge branch 'main' into test-async-mockGravatar Hassan Abouelela2021-04-20-7/+145
| | |\ \ | | |/ / | |/| |
| * | | Merge pull request #1544 from python-discord/mods-role-in-allowed-mentionsGravatar Matteo Bertucci2021-04-20-0/+1
| |\ \ \ | | | | | | | | | | Add the Moderators role to moderation_roles in config
| | * | | Add the Moderators role to moderation_roles in configGravatar Joe Banks2021-04-20-0/+1
| |/ / / | | | | | | | | This allows mod alert pings to go through in #mod-alerts, the allowed mentions only included the mods team role which is not pinged on mod alerts.
| * | | Merge pull request #1526 from python-discord/mbaruh/offdutyGravatar Boris Muratov2021-04-20-8/+145
| |\ \ \ | | | | | | | | | | Add Modpings cog and new Moderators role
| | * \ \ Merge branch 'main' into mbaruh/offdutyGravatar Boris Muratov2021-04-20-42/+179
| | |\ \ \ | | |/ / / | |/| | |
| | * | | Remove allowed mentions in modlog alertGravatar Boris Muratov2021-04-20-2/+1
| | | | | | | | | | | | | | | The modlog alert embed no longer pings everyone.
| | * | | Improve rediscache docGravatar Boris Muratov2021-04-20-1/+1
| | | | | | | | | | | | | | | Co-authored-by: ChrisJL <[email protected]>
| | * | | CamelCase the cog nameGravatar Boris Muratov2021-04-19-3/+3
| | | | |
| | * | | Merge branch 'mbaruh/offduty' of https://github.com/python-discord/bot into ↵Gravatar mbaruh2021-04-19-2/+2
| | |\ \ \ | | | | | | | | | | | | | | | | | | mbaruh/offduty
| | | * | | Remove here pingGravatar Boris Muratov2021-04-17-2/+2
| | | | | | | | | | | | | | | | | | Kinda defeats the purpose of being off-duty.
| | * | | | Renamed duty.py to modpings.pyGravatar mbaruh2021-04-19-0/+0
| | | | | |
| | * | | | Renamed Duty cog to ModpingsGravatar mbaruh2021-04-19-23/+23
| | |/ / / | | | | | | | | | | | | | | | The renaming includes the commands inside it.
| | * | | Name the rescheduling task, and cancel it on cog unloadGravatar mbaruh2021-04-17-1/+2
| | | | |
| | * | | Improve documentationGravatar mbaruh2021-04-17-1/+3
| | | | |
| | * | | Assume a scheduled task exists for `duty on`Gravatar mbaruh2021-04-17-2/+1
| | | | | | | | | | | | | | | | | | | | The lack of such a task may be indicative of a bug.
| | * | | Keep config succintGravatar mbaruh2021-04-17-2/+0
| | | | | | | | | | | | | | | | | | | | A moderator is expected to have the mod-team role and therefore it's enough to specify the latter in the mod and staff roles.
| | * | | Use set instead of update in duty offGravatar mbaruh2021-04-15-1/+1
| | | | |
| | * | | Add off-duty expiration date to audit logGravatar mbaruh2021-04-15-2/+2
| | | | |
| | * | | Fix setup docstring to specify correct cogGravatar mbaruh2021-04-15-1/+1
| | | | |
| | * | | Remove extra newlineGravatar Boris Muratov2021-04-15-1/+0
| | | | | | | | | | | | | | | Co-authored-by: ks129 <[email protected]>
| | * | | Add Duty cog and new Moderators roleGravatar mbaruh2021-04-14-4/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added a cog to allow moderators to go off and on duty. The off-duty state is cached via a redis cache, and its expiry is scheduled via the Scheduler. Additionally changes which roles are pinged on mod alerts.
| | | * | Tests: AsyncMock is now in the standard library!Gravatar Matteo Bertucci2021-04-20-1/+1
| | |/ / | |/| | | | | | The `tests/README.md` file still referenced our old custom `AsyncMock` that has been removed in favour of the standard library one that has been introduced in 3.8. This commit fixes this by updating the section.
| * | | Merge pull request #1532 from doublevcodes/mainGravatar Boris Muratov2021-04-20-2/+6
| |\ \ \ | | | | | | | | | | !superstarify default time
| | * | | Update bot/exts/moderation/infraction/superstarify.pyGravatar Vivaan Verma2021-04-19-1/+1
| | | | | | | | | | | | | | | Co-authored-by: Boris Muratov <[email protected]>
| | * | | Merge branch 'main' into mainGravatar Vivaan Verma2021-04-19-4/+46
| | |\ \ \ | | |/ / / | |/| | |
| * | | | Merge pull request #1537 from python-discord/list-non-staff-with-stream-permsGravatar ChrisJL2021-04-19-4/+46
| |\ \ \ \ | | | | | | | | | | | | List non staff with stream perms
| | * | | | Update comment in list stream for readibilityGravatar Chris2021-04-19-1/+1
| | | | | |
| | * | | | Improve the wording of the list streamers embedGravatar ChrisJL2021-04-19-1/+1
| | | | | | | | | | | | | | | | | | Co-authored-by: Matteo Bertucci <[email protected]>
| | * | | | Remove unnecessary _ in variable nameGravatar Chris2021-04-19-3/+3
| | | | | |
| | * | | | Update wording of comment to be clearer.Gravatar Chris2021-04-19-1/+1
| | | | | |
| | * | | | Add command to list users with streaming permsGravatar Chris2021-04-19-1/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is useful to audit users who still have the permission to stream. I have chosen to also sort and paginate the embed to make it easier to read. The sorting is based on how long until the user's streaming permissions are revoked, with permanent streamers at the end.
| | * | | | Require a mod role for stream commandsGravatar Chris2021-04-19-4/+4
| |/ / / / | | | | | | | | | | | | | | | Previously any staff member (including helpers) could use the stream commands.
| | * | | Change type hint from duration to expiryGravatar Vivaan Verma2021-04-19-2/+2
| | | | |
| | * | | Add default duration as constant and use Duration converterGravatar Vivaan Verma2021-04-19-4/+4
| | | | |
| | * | | Inline duration assignmentGravatar Vivaan Verma2021-04-19-2/+1
| | | | | | | | | | | | | | | Co-authored-by: Rohan Reddy Alleti <[email protected]>
| | * | | Fix linting errorsGravatar Vivaan Verma2021-04-18-1/+1
| | | | |
| | * | | Check if a duration was providedGravatar Vivaan Verma2021-04-18-2/+3
| | | | |
| | * | | Make duration an optional arg and default it to 1 hourGravatar Vivaan Verma2021-04-18-1/+5
| | | | |
| | * | | Added default duration of 1h to superstarifyGravatar Vivaan Verma2021-04-18-1/+1
| |/ / /
| | | * Fix zen's negative indexingGravatar francisdbillones2021-04-19-1/+1
| | |/ | |/| | | | Negative indexing starts at -1, not 0, meaning lower bound should be -1 * len(zen_lines), not -1 * upper_bound.
| * | Merge pull request #1528 from python-discord/mbaruh/allow_evalGravatar Hassan Abouelela2021-04-17-10/+57
| |\ \ | | | | | | | | Allow eval almost everywhere
| | * \ Merge branch 'main' into mbaruh/allow_evalGravatar Hassan Abouelela2021-04-17-0/+21
| | |\ \ | | |/ / | |/| |