| Commit message (Collapse) | Author | Age | Lines | |
|---|---|---|---|---|
| * | Merge pull request #833 from ks129/zen-match-fix | 2020-03-31 | -1/+11 | |
| |\ | | | | | Fixed !zen command exact word matching. | |||
| | * | Merge branch 'master' into zen-match-fix | 2020-03-31 | -14/+606 | |
| | |\ | |/ |/| | ||||
| * | | Merge pull request #845 from python-discord/update-logging-levels | 2020-03-31 | -10/+9 | |
| |\ \ | | | | | | | Logging Level Adjustments | |||
| | * \ | Merge branch 'master' into update-logging-levels | 2020-03-31 | -12/+656 | |
| | |\ \ | |/ / |/| | | ||||
| * | | | Set unsilence permissions to inherit instead of true | 2020-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-cog | 2020-03-30 | -3/+504 | |
| |\ \ \ | | | | | | | | | Implement silencer (hush) cog. | |||
| | * \ \ | Merge branch 'master' into hush-cog | 2020-03-30 | -548/+1802 | |
| | |\ \ \ | |/ / / |/| | | | ||||
| * | | | | Merge pull request #849 from ks129/webhook-match | 2020-03-29 | -0/+73 | |
| |\ \ \ \ | | | | | | | | | | | Discord Webhook URL removing | |||
| | * \ \ \ | Merge branch 'master' into webhook-match | 2020-03-29 | -1/+20 | |
| | |\ \ \ \ | |/ / / / |/| | | | | ||||
| * | | | | | Merge pull request #848 from ks129/pep0 | 2020-03-29 | -1/+20 | |
| |\ \ \ \ \ | | | | | | | | | | | | | Hard-coded PEP 0 to !pep command | |||
| | * | | | | | (PEP Command): Fixed comment about PEP 0 separately handling. | 2020-03-29 | -2/+1 | |
| | | | | | | | ||||
| | * | | | | | (PEP Command): Moved PEP 0 information to hard-coded strings from constants, ↵ | 2020-03-29 | -18/+14 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | moved PEP 0 sending to function. | |||
| | * | | | | | (PEP Command): Moved icon URL to constant instead hard-coded string. | 2020-03-29 | -2/+4 | |
| | | | | | | | ||||
| | * | | | | | (PEP Command): Fixed comment of explanation of PEP 0 different processing. | 2020-03-28 | -1/+2 | |
| | | | | | | | ||||
| | * | | | | | (PEP Command): Hard-coded PEP 0 | 2020-03-28 | -0/+21 | |
| |/ / / / / | ||||
| | * | | | | (Webhook Detection): Fixed grouping of regex, alert message content, ↵ | 2020-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 ↵ | 2020-03-28 | -2/+2 | |
| | | | | | | | | | | | | | | | | | | | | | confusion in `delete_and_respond` function. | |||
| | * | | | | (Webhook Detection): Fixed docstrings. | 2020-03-28 | -2/+2 | |
| | | | | | | ||||
| | * | | | | (Webhook Detection): Removed unnecessary URL hiding in `delete_and_respond`. | 2020-03-28 | -5/+0 | |
| | | | | | | ||||
| | * | | | | (Webhook Detection): Added grouping to RegEx compilation, removed ↵ | 2020-03-28 | -13/+4 | |
| | | | | | | | | | | | | | | | | | | | | | unnecessary function `scan_message`, moved this content to `on_message` event. | |||
| | * | | | | (Webhook Detection): Call `on_message` instead repeating code. | 2020-03-28 | -3/+1 | |
| | | | | | | ||||
| | * | | | | (Webhook Detection): Fixed order of cog loading. | 2020-03-28 | -1/+1 | |
| | | | | | | ||||
| | * | | | | (Webhook Detection): Added `on_message_edit` listener for Discord Webhooks ↵ | 2020-03-28 | -0/+7 | |
| | | | | | | | | | | | | | | | | | | | | | detecting. | |||
| | * | | | | (Webhook Detection): Alert message formatting changes, added `on_message` ↵ | 2020-03-28 | -2/+9 | |
| | | | | | | | | | | | | | | | | | | | | | listener. | |||
| | * | | | | (Webhook Detection): Added URL returning to `scan_message` helper function. | 2020-03-28 | -3/+4 | |
| | | | | | | ||||
| | * | | | | (Webhook Detection): Created `delete_and_respond` helper function to handle ↵ | 2020-03-28 | -2/+41 | |
| | | | | | | | | | | | | | | | | | | | | | Webhook URLs. | |||
| | * | | | | (Webhook Detection): Added `ModLog` fetching property. | 2020-03-28 | -0/+6 | |
| | | | | | | ||||
| | * | | | | (Webhook Detection): Added cog loading to __main__.py, created ↵ | 2020-03-28 | -0/+10 | |
| | | | | | | | | | | | | | | | | | | | | | `scan_message` helper function to detect Webhook URL. | |||
| | * | | | | (Webhook Detection): Added webhook match regex. | 2020-03-28 | -0/+4 | |
| | | | | | | ||||
| | * | | | | (Webhook Detection): Created cog. | 2020-03-28 | -0/+15 | |
| |/ / / / | ||||
| | * | | | Add tests for `HushDurationConverter`. | 2020-03-17 | -0/+30 | |
| | | | | | ||||
| | * | | | Add tests ensuring permissions get preserved. | 2020-03-17 | -0/+31 | |
| | | | | | ||||
| | * | | | Use set `discard` instead of `remove`. | 2020-03-17 | -3/+2 | |
| | | | | | | | | | | | | | | | | | | | | | Discard ignores non present values, allowing us to skip the KeyError suppress. | |||
| | * | | | Add docstring to test. | 2020-03-17 | -0/+1 | |
| | | | | | ||||
| | * | | | Fix test name. | 2020-03-17 | -1/+1 | |
| | | | | | | | | | | | | | | | | | `removed` was describing the opposite behaviour. | |||
| | * | | | Remove `alert_channel` mention from docstring. | 2020-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. | 2020-03-17 | -3/+3 | |
| | | | | | | | | | | | | | | | | | Co-authored-by: MarkKoz <[email protected]> | |||
| | * | | | Reword `unsilence` docstring. | 2020-03-17 | -2/+1 | |
| | | | | | | | | | | | | | | | | | Co-authored-by: MarkKoz <[email protected]> | |||
| | * | | | Remove `channel` mentions from command docstrings. | 2020-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. | 2020-03-17 | -2/+2 | |
| | | | | | | | | | | | | | | | | | Previous names were undescriptive from testing phases. | |||
| | * | | | Fix `test_cog_unload` passing tests with invalid values. | 2020-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`. | 2020-03-16 | -1/+6 | |
| | | | | | ||||
| | * | | | Remove long indentation from docstrings. | 2020-03-15 | -6/+6 | |
| | | | | | ||||
| | * | | | Set `_get_instance_vars_event` in test's `setUp`. | 2020-03-15 | -0/+2 | |
| | | | | | ||||
| | * | | | Adjust tests for new calling behaviour. | 2020-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. | 2020-03-15 | -0/+2 | |
| | | | | | ||||
| | * | | | Block commands until all instance vars are loaded. | 2020-03-15 | -0/+4 | |
| | | | | | ||||
| | * | | | Assign created task to a var. | 2020-03-15 | -1/+1 | |
| | | | | | ||||
| | * | | | Pass kwargs directly instead of a PermissionOverwrite. | 2020-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. | 2020-03-15 | -1/+1 | |
| | | | | | | | | | | | | | | | | | Co-authored-by: MarkKoz <[email protected]> | |||