aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| | | * | Refactor flow for automatically adding punctuationGravatar PureFunctor2020-11-30-8/+5
| | | | |
| | | * | Fix unawaited coroutine in InfractionGravatar PureFunctor2020-11-30-1/+1
| | | | |
| | | * | Merge branch 'master' into pure/feature/infraction-appendGravatar Boris Muratov2020-11-10-2056/+3188
| | | |\ \
| | | * | | Automatically add periods as visual buffersGravatar PureFunctor2020-11-08-6/+13
| | | | | |
| | | * | | Refactor redundant code in infraction_editGravatar PureFunctor2020-11-08-5/+4
| | | | | |
| | | * | | Raise BadArgument in the Infraction converterGravatar PureFunctor2020-11-08-11/+4
| | | | | |
| | | * | | Remove unnecessary noqa pragma for flake8Gravatar PureFunctor2020-11-08-2/+2
| | | | | |
| | | * | | Refactor infraction_edit and infraction_appendGravatar PureFunctor2020-10-03-32/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This refactors the infraction_edit and infraction_append commands to utilize the Infraction converter.
| | | * | | Add Infraction converterGravatar PureFunctor2020-10-03-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the Infraction converter to be used in infraction_edit and infraction_append.
| | | * | | Invoke infraction_edit directly with method callGravatar PureFunctor2020-10-03-1/+1
| | | | | |
| | | * | | Add bold styling for vertical bar separatorsGravatar PureFunctor2020-10-01-1/+1
| | | | | |
| | | * | | Remove prefix when appending a reasonGravatar PureFunctor2020-09-27-1/+1
| | | | | |
| | | * | | Make vertical bar separators escapedGravatar PureFunctor2020-09-24-1/+1
| | | | | |
| | | * | | Add visual buffer for appended reasonGravatar PureFunctor2020-09-24-1/+1
| | | | | |
| | | * | | Add "a" alias for appendGravatar PureFunctor2020-09-24-1/+1
| | | | | |
| | | * | | Fix unawaited coroutineGravatar PureFunctor2020-09-24-2/+2
| | | | | |
| | | * | | Refactor routine for obtaining latest infractionGravatar PureFunctor2020-09-24-22/+14
| | | | | |
| | | * | | Add get_latest_infraction utility functionGravatar PureFunctor2020-09-24-0/+14
| | | | | |
| | | * | | Add append subcommand for infraction groupGravatar PureFunctor2020-09-24-0/+50
| | | | | |
| | | | | * Alphabetizes Channel OrderingGravatar Hassan Abouelela2020-11-28-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| | | | | * Fixes AlignmentGravatar Hassan Abouelela2020-11-28-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| | | | | * Renames Code Help ChannelGravatar Hassan Abouelela2020-11-28-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Renames code_help_channel to be more inline with channel 2. Signed-off-by: Hassan Abouelela <[email protected]>
| | | | | * Removes Non-Existent ChannelGravatar Hassan Abouelela2020-11-28-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
| | | | | * Adds VoiceChannels and Related Chats to ConfigGravatar Hassan Abouelela2020-11-24-3/+17
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates config-default.yml to include voice channels, and the text chat channel they map to. Signed-off-by: Hassan Abouelela <[email protected]>
| * | | | Update CODEOWNERSGravatar Joe Banks2020-11-24-1/+2
| | | | |
| * | | | Update CODEOWNERSGravatar Joe Banks2020-11-24-1/+1
| | | | |
| * | | | Open deployment.yaml from kubernetes repositoryGravatar Sebastiaan Zeeff2020-11-23-22/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We will now use the deployment information located in the private python-discord/kubernetes repository. The workflow will use a GitHub Personal Access Token to access this private repository. Signed-off-by: Sebastiaan Zeeff <[email protected]>
| * | | | Narrow down repository events that trigger a buildGravatar Sebastiaan Zeeff2020-11-23-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I've narrowed down repository events that trigger a Build to the "push" event specifically. This means that we never build for a "pull request" trigger, even if the source branch is called "master". Signed-off-by: Sebastiaan Zeeff <[email protected]>
* | | | | Refractors According To Style GuideGravatar Hassan Abouelela2020-11-28-78/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updates changes made in the PR to be more inline with style guide. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | Refractors Voice Sync HelperGravatar Hassan Abouelela2020-11-28-91/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refractors the voice sync helper function into two different functions, one for each purpose. Moves the afk_channel get/creation code to its own function. Updates tests. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | Clarifies Constants Use in SilenceGravatar Hassan Abouelela2020-11-28-23/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes all usages of bot.constant to use dotted path to remove confusion and namespace collision. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | Updates Silence LockGravatar Hassan Abouelela2020-11-26-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modifies the lock on the silence command, in order to choose between ctx and channel arg based on input. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | Reduces Redundant Code in Silence CogGravatar Hassan Abouelela2020-11-25-32/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Restructures some code to make it more understandable and reduce duplication. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | Refactors Send Message Function Gravatar Hassan Abouelela2020-11-25-11/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactors the send message utility function to make it more legible and reduce unnecessary calls. Co-authored-by: Mark <[email protected]>
* | | | | Reduces IsInstance Calls Where PossibleGravatar Hassan Abouelela2020-11-24-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduces redundant calls to isinstance by saving the result where applicable. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | Reduces Redundancy in UnmuteGravatar Hassan Abouelela2020-11-24-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replaces a repeated hardcoded message with a dynamically built one. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | Adds Connect to Reset PermissionsGravatar Hassan Abouelela2020-11-24-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During unsilencing, if the previous channel overwrites are None, the channel should default to None for all relevant permissions. Adds the connect permission as it was missing. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | Fixes Typo in Silence TestsGravatar Hassan Abouelela2020-11-24-1/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | Move VoiceChat Sync To _unsilenceGravatar Hassan Abouelela2020-11-24-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moves the call to voice chat sync from _unsilence_wrapper to _unsilence. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | Moves VoiceChat Sync Out of Overwrites FunctionGravatar Hassan Abouelela2020-11-24-9/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VoiceChat sync only needs to be called when the command is invoked, instead of while updating permissions. Moved call to command function to reflect that, and fixed failing tests. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | Refractors SendMessage FunctionGravatar Hassan Abouelela2020-11-24-39/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refractors the send message function in silence to make it more understandable and flexible. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | Fixes Typo in DocGravatar Hassan Abouelela2020-11-24-1/+1
| | | | | | | | | | | | | | | Co-authored-by: Mark <[email protected]>
* | | | | Removes AnyChannel ConverterGravatar Hassan Abouelela2020-11-24-91/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removes the AnyChannel converter in favor of a combination of Text and Voice converters. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | Fixes Voice Channel AccessGravatar Hassan Abouelela2020-11-24-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A typo caused the function to return the text channel for `code/help 1`, when it is meant to access `code/help 2`. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | Refractors For Style GuidelinesGravatar Hassan Abouelela2020-11-24-13/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refractors method signatures and calls to follow python-discord style guide. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | Finalizes Silence & Unsilence UnitTestsGravatar Hassan Abouelela2020-11-23-17/+32
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | Adds Silence & Unsilence UnitTestsGravatar Hassan Abouelela2020-11-23-1/+211
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | Removes Redundant Exception HandlingGravatar Hassan Abouelela2020-11-23-38/+20
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | General Silence Class TestsGravatar Hassan Abouelela2020-11-23-17/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds tests for helper functions in the silence cog. Signed-off-by: Hassan Abouelela <[email protected]>
* | | | | Fixes Voice Silence ReportingGravatar Hassan Abouelela2020-11-23-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes the channel reported as muted to voice channel chat channels when silencing voice channels. Signed-off-by: Hassan Abouelela <[email protected]>