aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
* | | | | | | | | | Fix git install in DockerfileGravatar Joseph Banks2020-07-07-3/+5
| | | | | | | | | |
* | | | | | | | | | Add git to Docker imageGravatar Joseph Banks2020-07-07-0/+3
| | | | | | | | | |
* | | | | | | | | | Allow owners, admins, and mods roles to be pingedGravatar MarkKoz2020-07-07-1/+2
| | | | | | | | | |
* | | | | | | | | | Prevent bot from mentioning rolesGravatar MarkKoz2020-07-07-96/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was open to abuse when the bot relayed user input.
* | | | | | | | | | Merge pull request #1000 from python-discord/bug/mod/bot-4r/modlog-member-updateGravatar Senjan212020-07-07-64/+33
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | ModLog: fix AttributeError in on_member_update
| * \ \ \ \ \ \ \ \ \ Merge branch 'master' into bug/mod/bot-4r/modlog-member-updateGravatar Senjan212020-07-07-166/+851
| |\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / |/| | | | | | | | | |
* | | | | | | | | | | Merge pull request #1021 from python-discord/feat/util/1019/slowmodeGravatar Dennis Pham2020-07-06-6/+232
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Implement the Slowmode cog
| * | | | | | | | | | | Fix imports in slowmode testsGravatar Den42002020-07-06-3/+3
| | | | | | | | | | | |
| * | | | | | | | | | | Move slowmode cog to the moderation subpackageGravatar Den42002020-07-06-2/+3
| | | | | | | | | | | |
| * | | | | | | | | | | Improve set_slowmode tests by checking whether the channel was editedGravatar Den42002020-07-06-8/+22
| | | | | | | | | | | |
| * | | | | | | | | | | Add multiple test cases for set_slowmode testsGravatar Den42002020-07-06-10/+34
| | | | | | | | | | | |
| * | | | | | | | | | | Use local text_channel instead of instance attributeGravatar Den42002020-07-06-13/+10
| | | | | | | | | | | |
| * | | | | | | | | | | Add tests for set_slowmodeGravatar Den42002020-07-06-0/+20
| | | | | | | | | | | |
| * | | | | | | | | | | Add tests for reset_slowmodeGravatar Den42002020-07-06-3/+22
| | | | | | | | | | | |
| * | | | | | | | | | | Add tests for cog_check and get_slowmodeGravatar Den42002020-07-06-0/+37
| | | | | | | | | | | |
| * | | | | | | | | | | Update the docstrings to account for optional channel parameterGravatar Den42002020-07-06-4/+4
| | | | | | | | | | | |
| * | | | | | | | | | | Remove unneeded kwargs for `typing.Optional` to keep consistencyGravatar Den42002020-07-06-2/+2
| | | | | | | | | | | |
| * | | | | | | | | | | Make channel comparison against None consistentGravatar Den42002020-07-06-1/+1
| | | | | | | | | | | |
| * | | | | | | | | | | Default to the channel that `slowmode set` was invoked inGravatar Den42002020-07-06-1/+5
| | | | | | | | | | | |
| * | | | | | | | | | | Merge branch 'feat/util/1019/slowmode' of https://git.pydis.com/bot into ↵Gravatar Den42002020-07-06-0/+0
| |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | feat/util/1019/slowmode
| | * \ \ \ \ \ \ \ \ \ \ Merge branch 'master' into feat/util/1019/slowmodeGravatar Dennis Pham2020-07-03-1/+1
| | |\ \ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / / / / |/| | | | | | | | | | | |
| * | | | | | | | | | | | Default to the channel that `slowmode reset` was invoked inGravatar Den42002020-07-06-1/+5
| | | | | | | | | | | | |
| * | | | | | | | | | | | Default to the channel that `slowmode get` was invoked inGravatar Den42002020-07-06-1/+6
| | | | | | | | | | | | |
| * | | | | | | | | | | | Remove monkeypatch and apply appropriate changes to _stringify_time_unitGravatar Den42002020-07-06-7/+4
| | | | | | | | | | | | |
| * | | | | | | | | | | | Create a constant for the max slowmode delayGravatar Den42002020-07-06-1/+4
| | | | | | | | | | | | |
| * | | | | | | | | | | | Merge branch 'master' of https://git.pydis.com/bot into feat/util/1019/slowmodeGravatar Den42002020-07-03-1/+1
| |\ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / |/| / / / / / / / / / / / | |/ / / / / / / / / / /
| * | | | | | | | | | | Only allow moderators to use the entire cogGravatar Den42002020-07-03-3/+5
| | | | | | | | | | | |
| * | | | | | | | | | | Move log to before what it's logging executes.Gravatar Den42002020-07-03-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes sure the log will be made, since the operations executed are now below it.
| * | | | | | | | | | | Remove precision kwarg usageGravatar Den42002020-07-03-9/+6
| | | | | | | | | | | |
| * | | | | | | | | | | Use total_seconds method instead of seconds attributeGravatar Den42002020-07-01-1/+1
| | | | | | | | | | | |
| * | | | | | | | | | | Add comment explaining TypeErrorGravatar Den42002020-07-01-0/+2
| | | | | | | | | | | |
| * | | | | | | | | | | Catch TypeError when the slowmode delay is 0 secondsGravatar Den42002020-07-01-1/+9
| | | | | | | | | | | |
| * | | | | | | | | | | Forgot an await in the Duration converterGravatar Den42002020-07-01-1/+1
| | | | | | | | | | | |
| * | | | | | | | | | | Create DurationDelta converter and humanize timedelta output for Slowmode cog.Gravatar Den42002020-07-01-14/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The DurationDelta converter will allow the Slowmode cog to use a formatted timestamp instead of an integer representing seconds. I created a new converter because the Duration converter returned a datetime.datetime object, instead of a time delta. Joe mentioned that I could just subtract the datetime.datetime object from datetime.utcnow(), but there is a small delay between conversion and when the function is actually executed. This caused something like `!slowmode set #python-general 5s` to set the slowmode delay to 4 seconds instead of 5. Now, with this new converter, the set command can be invoked using a formatted timestamp like so: `!slowmode set #python-general 4h23M19s`. This would set the slowmode delay in #python-general to 4 hours, 23 minutes, and 19 seconds. Of course that delay would be quite overkill for #python-general, but that's just for the sake of this example.
| * | | | | | | | | | | Add some logging for the Slowmode cogGravatar Den42002020-07-01-0/+11
| | | | | | | | | | | |
| * | | | | | | | | | | Create docstring for Slowmode cogGravatar Den42002020-07-01-0/+1
| | | | | | | | | | | |
| * | | | | | | | | | | Add reset_slowmode functionGravatar Den42002020-07-01-0/+9
| | | | | | | | | | | |
| * | | | | | | | | | | Ensure slowmode delay is between 0 and 21600 seconds before setting itGravatar Den42002020-07-01-4/+10
| | | | | | | | | | | |
| * | | | | | | | | | | Implement the set_slowmode functionGravatar Den42002020-07-01-1/+5
| | | | | | | | | | | |
| * | | | | | | | | | | Implement the get_slowmode functionGravatar Den42002020-07-01-0/+2
| | | | | | | | | | | |
| * | | | | | | | | | | Create boilerplate code for the commandsGravatar Den42002020-07-01-1/+18
| | | | | | | | | | | |
| * | | | | | | | | | | Add base Slowmode cogGravatar Den42002020-07-01-0/+15
| | | | | | | | | | | |
| | * | | | | | | | | | Use int literal instead of len for sliceGravatar Mark2020-06-16-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Kieran Siek <[email protected]>
| | * | | | | | | | | | ModLog: refactor on_member_updateGravatar MarkKoz2020-06-14-23/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Exclude all sequences/mapping types rather than excluding by name * Replace MEMBER_CHANGES_SUPPRESSED with excludes as DeepDiff args * Don't keep track of "done" attributes - there shouldn't be dupes
| | * | | | | | | | | | ModLog: fix excluded None values in on_member_updateGravatar MarkKoz2020-06-14-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was preventing diffs for added nicknames from showing, among other things.
| | * | | | | | | | | | ModLog: remove user diff in on_member_updateGravatar MarkKoz2020-06-14-21/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The correct event for user changes is on_user_update, so this code does nothing in the on_member_update event.
| | * | | | | | | | | | ModLog: fix AttributeError in on_member_updateGravatar MarkKoz2020-06-14-22/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `iterable_item_removed` and `iterable_item_added` lack `new_value` and `old_value`. Instead, they just contain the actual value added or removed. The code was incorrectly trying to access old and new values for the iterable changes. The iterable changes are only useful for the role diff, but they aren't even needed for that. The role diff calculation has been refactored to always get the diff rather than doing it only if it sees there has been a change to the `_roles` attribute. To be clear, `_roles` only has IDs, which is why its diff isn't that useful anyway. To use it, the code would have to get the Role objects, which is basically what the `roles` property already does. `_cs_roles` seems to be some Role object cache, but its reliability is unclear.
| | | | | | | | | | | * Help Channels: Simplify unpinningGravatar ks1292020-07-08-13/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove complex None checking message fetching and replace it with `bot.http.unpin_message` and catch exception when message don't exist.
| | | | | | | | | | | * Merge branch 'master' into help-channels-pinGravatar Joseph Banks2020-07-06-1/+1
| | | | | | | | | | | |\ | |_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | |
* | | | | | | | | | | | Outdated badge in README upset meGravatar Joseph Banks2020-07-03-1/+1
|/ / / / / / / / / / /