aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* Disallow resending hidden infractionsGravatar MarkKoz2021-07-15-0/+4
|
* Fix superstarify reason displaying the incorrect nicknameGravatar MarkKoz2021-07-15-11/+7
| | | | | | | Because the edit was happening before the reason string was formatted, the edit updated the state of the user object, causing the nickname to be the superstarified one rather than the one the user was attempting to use.
* Add command to resend infraction embedGravatar MarkKoz2021-07-15-3/+13
| | | | Resolve #1664
* Add util function to send an infraction using an Infraction dictGravatar MarkKoz2021-07-15-19/+45
| | | | | There was some redundant pre-processing of arguments happening before calling `notify_infraction`.
* Remove unnecessary config constantGravatar MarkKoz2021-07-15-2/+0
| | | | | It's only being used as an anchor in the YAML file. There is no need to have it in Python if no Python code references it.
* feat: add for-else tag (#1643)Gravatar vcokltfre2021-07-13-0/+17
| | | | | | * feat: add for-else tag Co-authored-by: Joe Banks <[email protected]> Co-authored-by: Xithrius <[email protected]>
* Merge pull request #1676 from python-discord/drop-gpl-depsGravatar Xithrius2021-07-08-89/+149
|\ | | | | Drop GPL Dependencies
| * Merge branch 'main' into drop-gpl-depsGravatar Xithrius2021-07-08-177/+920
| |\ | |/ |/|
* | Merge pull request #1297 from HassanAbouelela/voicechannel-muteGravatar Kieran Siek2021-07-09-177/+920
|\ \ | | | | | | Implements Voice Channel Muting
| * \ Merge branch 'main' into voicechannel-muteGravatar Xithrius2021-07-08-431/+793
| |\ \ | |/ / |/| |
| * | Properly Handles Indefinite SilencesGravatar Hassan Abouelela2021-06-05-6/+16
| | | | | | | | | | | | | | | | | | | | | Fixes a bug that stopped the duration `forever` from getting used as a valid duration for silence. Signed-off-by: Hassan Abouelela <[email protected]>
| * | Merge branch 'main' into voicechannel-muteGravatar Kieran Siek2021-06-05-1682/+2476
| |\ \
| * | | Updates Shh Command To Mirror SilenceGravatar Hassan Abouelela2021-05-13-13/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates the shh and unshh commands from the error handler to accept channel and kick arguments, to give them the same interface as the silence and unsilence command. Signed-off-by: Hassan Abouelela <[email protected]>
| * | | Updates Silence To Accept Duration Or ChannelGravatar Hassan Abouelela2021-05-13-17/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates the silence command to accept the silence duration or channel as the first argument to the command. Updates tests. Signed-off-by: Hassan Abouelela <[email protected]>
| * | | Updates Silence To Use `.format`Gravatar Hassan Abouelela2021-05-12-19/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Uses `.format` to create silence and unsilence messages instead of `.replace`. Signed-off-by: Hassan Abouelela <[email protected]>
| * | | Rename `Manual` Variable To Clarify IntentionsGravatar Hassan Abouelela2021-05-10-3/+3
| | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * | | Restructures Silence CogGravatar Hassan Abouelela2021-05-10-78/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Restructures silence cog helper methods to group relation functions in a more logical manner. Signed-off-by: Hassan Abouelela <[email protected]>
| * | | Fixes Logging StatementGravatar Hassan Abouelela2021-05-10-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes logging statement levels and messages to correctly express intent. Signed-off-by: Hassan Abouelela <[email protected]>
| * | | Fixes Function Signature FormattingGravatar Hassan Abouelela2021-05-10-2/+4
| | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * | | Merge remote-tracking branch 'fork/voicechannel-mute' into voicechannel-muteGravatar Hassan Abouelela2021-05-09-39/+932
| |\ \ \
| | * \ \ Merge branch 'main' into voicechannel-muteGravatar Hassan Abouelela2021-05-04-39/+932
| | |\ \ \
| * | | | | Uses Itertools Product To Reduce NestingGravatar Hassan Abouelela2021-05-09-24/+26
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | Uses itertools.product to eliminate some nested for loops in tests. Signed-off-by: Hassan Abouelela <[email protected]>
| * | | | Adds Missing Voice Version Of TestsGravatar Hassan Abouelela2021-05-04-3/+4
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * | | | 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 branch 'main' into voicechannel-muteGravatar Hassan Abouelela2021-04-06-1561/+2256
| |\ \ \ \ \
| * | | | | | Removes Unused Mock ResetGravatar Hassan Abouelela2021-03-12-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * | | | | | Use Mock Side Effect Instead Of Extra FunctionGravatar Hassan Abouelela2021-03-10-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes the mock used for creating an erroneous function in the silence tests cog to use the side effect property instead of an extra function. Signed-off-by: Hassan Abouelela <[email protected]>
| * | | | | | Simplifies Redundant Unsilence Target TestGravatar Hassan Abouelela2021-03-10-33/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removes redundant functionality from the `test_unsilence_helper_fail` test as it is covered by another test. Keeps the functionality that isn't being tested elsewhere. Signed-off-by: Hassan Abouelela <[email protected]>
| * | | | | | Combine Silence Target TestsGravatar Hassan Abouelela2021-03-10-39/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Combine two tests that are responsible for checking the silence helper uses the correct channel and message. Signed-off-by: Hassan Abouelela <[email protected]>
| * | | | | | Merge branch 'master' into voicechannel-muteGravatar Hassan Abouelela2021-03-10-477/+934
| |\ \ \ \ \ \
| * | | | | | | Modifies Silence TestsGravatar Hassan Abouelela2021-02-05-15/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a missing test assertion, and seperates the voice and text components of a test. Signed-off-by: Hassan Abouelela <[email protected]>
| * | | | | | | Modifies Silence TestsGravatar Hassan Abouelela2021-02-05-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a missing test assertion, and seperates the voice and text components of a test. Signed-off-by: Hassan Abouelela <[email protected]>
| * | | | | | | Separates Voice Overwrite TestsGravatar Hassan Abouelela2021-02-04-9/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * | | | | | | Adds Move To Failure TestsGravatar Hassan Abouelela2021-02-04-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| * | | | | | | Merge remote-tracking branch 'origin/voicechannel-mute' into voicechannel-muteGravatar Hassan Abouelela2021-02-04-1/+1
| |\ \ \ \ \ \ \
| | * | | | | | | Modifies Channel Creation ReasonGravatar Hassan Abouelela2021-02-04-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Matteo Bertucci <[email protected]>
| * | | | | | | | Updates Voice Kick Restriction TestsGravatar Hassan Abouelela2021-02-04-11/+19
| |/ / / / / / /
| * | | | | | | Restricts Voice Silence Skip To Mod RolesGravatar Hassan Abouelela2021-02-04-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Raises the permission required to not be muted during a voice silence to moderation roles.
| * | | | | | | Updates Voice Channel ConfigGravatar Hassan Abouelela2021-02-04-12/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds the new voice and text channels to the default config, and renames all affected channels in the config and constants to match the new names.
| * | | | | | | Merge branch 'master' into voicechannel-muteGravatar Hassan Abouelela2021-02-04-1414/+1799
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # bot/constants.py
| * | | | | | | | Cleans Up Voice Sync TestsGravatar Hassan Abouelela2021-01-10-18/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cleans up the tests related to the voice sync/kick functions by adding a helper method to simplify mocking.
| * | | | | | | | Cleans Up & Simplifies TestsGravatar Hassan Abouelela2021-01-10-80/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cleans up the silence tests by removing unneeded or repeated mocks. Simplifies tests where possible by joining similar tests.
| * | | | | | | | Improves Unsilence Wrapper DocstringGravatar Hassan Abouelela2021-01-10-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modifies the unsilence wrapper docstring to make the arguments and behavior more clear.
| * | | | | | | | Breaks Out Send Message TestsGravatar Hassan Abouelela2020-12-29-75/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moves the tests for the helper method `send_message` to simplify tests, and avoid repeated code.
| * | | | | | | | Makes Kick Keyword Only ParameterGravatar Hassan Abouelela2020-12-29-3/+3
| | | | | | | | |
| * | | | | | | | Adds Error Handling For Voice Channel MutingGravatar Hassan Abouelela2020-12-29-5/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds error handlers to allow voice channel muting to handle as many members as possible.