aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* Merge pull request #833 from ks129/zen-match-fixGravatar Sebastiaan Zeeff2020-03-31-1/+11
|\ | | | | Fixed !zen command exact word matching.
| * Merge branch 'master' into zen-match-fixGravatar Karlis S2020-03-31-14/+606
| |\ | |/ |/|
* | Merge pull request #845 from python-discord/update-logging-levelsGravatar Leon Sandøy2020-03-31-10/+9
|\ \ | | | | | | Logging Level Adjustments
| * \ Merge branch 'master' into update-logging-levelsGravatar Leon Sandøy2020-03-31-12/+656
| |\ \ | |/ / |/| |
* | | Set unsilence permissions to inherit instead of trueGravatar Sebastiaan Zeeff2020-03-30-2/+2
| | | | | | | | | | | | | | | | | | The "unsilence" action of the silence/hush command used `send_messages=True` when unsilencing a hushed channel. This had the side effect of also enabling send messages permissions for those with the Muted rule, as an explicit True permission apparently overwrites an explicit False permission, even if the latter was set for a higher top-role. The solution is to revert back to the `Inherit` permission by assigning `None`. This is what we normally use when Developers are allowed to send messages to a channel.
* | | Merge pull request #812 from Numerlor/hush-cogGravatar Eivind Teig2020-03-30-3/+504
|\ \ \ | | | | | | | | Implement silencer (hush) cog.
| * \ \ Merge branch 'master' into hush-cogGravatar Eivind Teig2020-03-30-548/+1802
| |\ \ \ | |/ / / |/| | |
* | | | Merge pull request #849 from ks129/webhook-matchGravatar S. Co12020-03-29-0/+73
|\ \ \ \ | | | | | | | | | | Discord Webhook URL removing
| * \ \ \ Merge branch 'master' into webhook-matchGravatar S. Co12020-03-29-1/+20
| |\ \ \ \ | |/ / / / |/| | | |
* | | | | Merge pull request #848 from ks129/pep0Gravatar S. Co12020-03-29-1/+20
|\ \ \ \ \ | | | | | | | | | | | | Hard-coded PEP 0 to !pep command
| * | | | | (PEP Command): Fixed comment about PEP 0 separately handling.Gravatar ks1232020-03-29-2/+1
| | | | | |
| * | | | | (PEP Command): Moved PEP 0 information to hard-coded strings from constants, ↵Gravatar ks1232020-03-29-18/+14
| | | | | | | | | | | | | | | | | | | | | | | | moved PEP 0 sending to function.
| * | | | | (PEP Command): Moved icon URL to constant instead hard-coded string.Gravatar ks1232020-03-29-2/+4
| | | | | |
| * | | | | (PEP Command): Fixed comment of explanation of PEP 0 different processing.Gravatar ks1232020-03-28-1/+2
| | | | | |
| * | | | | (PEP Command): Hard-coded PEP 0Gravatar ks1232020-03-28-0/+21
|/ / / / /
| * | | | (Webhook Detection): Fixed grouping of regex, alert message content, ↵Gravatar Karlis S2020-03-28-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | docstrings, string formatting and URL hiding to show in logs. Co-Authored-By: Mark <[email protected]>
| * | | | (Webhook Detection): Renamed `url` variable to `redacted_url` to avoid ↵Gravatar ks1232020-03-28-2/+2
| | | | | | | | | | | | | | | | | | | | confusion in `delete_and_respond` function.
| * | | | (Webhook Detection): Fixed docstrings.Gravatar ks1232020-03-28-2/+2
| | | | |
| * | | | (Webhook Detection): Removed unnecessary URL hiding in `delete_and_respond`.Gravatar ks1232020-03-28-5/+0
| | | | |
| * | | | (Webhook Detection): Added grouping to RegEx compilation, removed ↵Gravatar ks1232020-03-28-13/+4
| | | | | | | | | | | | | | | | | | | | unnecessary function `scan_message`, moved this content to `on_message` event.
| * | | | (Webhook Detection): Call `on_message` instead repeating code.Gravatar ks1232020-03-28-3/+1
| | | | |
| * | | | (Webhook Detection): Fixed order of cog loading.Gravatar ks1232020-03-28-1/+1
| | | | |
| * | | | (Webhook Detection): Added `on_message_edit` listener for Discord Webhooks ↵Gravatar ks1232020-03-28-0/+7
| | | | | | | | | | | | | | | | | | | | detecting.
| * | | | (Webhook Detection): Alert message formatting changes, added `on_message` ↵Gravatar ks1232020-03-28-2/+9
| | | | | | | | | | | | | | | | | | | | listener.
| * | | | (Webhook Detection): Added URL returning to `scan_message` helper function.Gravatar ks1232020-03-28-3/+4
| | | | |
| * | | | (Webhook Detection): Created `delete_and_respond` helper function to handle ↵Gravatar ks1232020-03-28-2/+41
| | | | | | | | | | | | | | | | | | | | Webhook URLs.
| * | | | (Webhook Detection): Added `ModLog` fetching property.Gravatar ks1232020-03-28-0/+6
| | | | |
| * | | | (Webhook Detection): Added cog loading to __main__.py, created ↵Gravatar ks1232020-03-28-0/+10
| | | | | | | | | | | | | | | | | | | | `scan_message` helper function to detect Webhook URL.
| * | | | (Webhook Detection): Added webhook match regex.Gravatar ks1232020-03-28-0/+4
| | | | |
| * | | | (Webhook Detection): Created cog.Gravatar ks1232020-03-28-0/+15
|/ / / /
| * | | Add tests for `HushDurationConverter`.Gravatar Numerlor2020-03-17-0/+30
| | | |
| * | | Add tests ensuring permissions get preserved.Gravatar Numerlor2020-03-17-0/+31
| | | |
| * | | Use set `discard` instead of `remove`.Gravatar Numerlor2020-03-17-3/+2
| | | | | | | | | | | | | | | | | | | | Discard ignores non present values, allowing us to skip the KeyError suppress.
| * | | Add docstring to test.Gravatar Numerlor2020-03-17-0/+1
| | | |
| * | | Fix test name.Gravatar Numerlor2020-03-17-1/+1
| | | | | | | | | | | | | | | | `removed` was describing the opposite behaviour.
| * | | Remove `alert_channel` mention from docstring.Gravatar Numerlor2020-03-17-1/+1
| | | | | | | | | | | | | | | | | | | | After removing the optional channel arg and changing output message channels we're only testing `ctx`'s `send`.
| * | | Remove one indentation level.Gravatar Numerlor2020-03-17-3/+3
| | | | | | | | | | | | | | | | Co-authored-by: MarkKoz <[email protected]>
| * | | Reword `unsilence` docstring.Gravatar Numerlor2020-03-17-2/+1
| | | | | | | | | | | | | | | | Co-authored-by: MarkKoz <[email protected]>
| * | | Remove `channel` mentions from command docstrings.Gravatar Numerlor2020-03-17-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the new behaviour of not accepting channels and muting the current one, it's no longer neccessary to keep the channel param in the docstring. Co-authored-by: MarkKoz <[email protected]>
| * | | Rename `cog_unload` tests.Gravatar Numerlor2020-03-17-2/+2
| | | | | | | | | | | | | | | | Previous names were undescriptive from testing phases.
| * | | Fix `test_cog_unload` passing tests with invalid values.Gravatar Numerlor2020-03-17-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The first assert - `asyncio_mock.create_task.assert_called_once_with` called `alert_channel`'s send resulting in an extra call. `send` on `alert_channel` was not tested properly because of a typo and a missing assert in the method call.
| * | | Handle and log `CommandErrors` on `.can_run`.Gravatar Numerlor2020-03-16-1/+6
| | | |
| * | | Remove long indentation from docstrings.Gravatar Numerlor2020-03-15-6/+6
| | | |
| * | | Set `_get_instance_vars_event` in test's `setUp`.Gravatar Numerlor2020-03-15-0/+2
| | | |
| * | | Adjust tests for new calling behaviour.Gravatar Numerlor2020-03-15-2/+2
| | | | | | | | | | | | | | | | | | | | `.set_permissions` calls were changed to use kwargs directly instead of an overwrite, this reflects the changes in tests.
| * | | Document returns values of private methods.Gravatar Numerlor2020-03-15-0/+2
| | | |
| * | | Block commands until all instance vars are loaded.Gravatar Numerlor2020-03-15-0/+4
| | | |
| * | | Assign created task to a var.Gravatar Numerlor2020-03-15-1/+1
| | | |
| * | | Pass kwargs directly instead of a PermissionOverwrite.Gravatar Numerlor2020-03-15-9/+3
| | | | | | | | | | | | | | | | | | | | The `set_permissions` method creates a `PermissionOverwrite` from kwargs internally, so we can skip creating it ourselves and unpack the dict directly into kwargs.
| * | | Change BadArgument error wording.Gravatar Numerlor2020-03-15-1/+1
| | | | | | | | | | | | | | | | Co-authored-by: MarkKoz <[email protected]>