| Commit message (Collapse) | Author | Age | Lines | ||
|---|---|---|---|---|---|
| ... | |||||
| | * | | | | Remove monkeypatch and apply appropriate changes to _stringify_time_unit | 2020-07-06 | -7/+4 | ||
| | | | | | | |||||
| | * | | | | Create a constant for the max slowmode delay | 2020-07-06 | -1/+4 | ||
| | | | | | | |||||
| | * | | | | Merge branch 'master' of https://git.pydis.com/bot into feat/util/1019/slowmode | 2020-07-03 | -1/+1 | ||
| | |\ \ \ \ | |/ / / / |/| / / / | |/ / / | |||||
| * | | | | Outdated badge in README upset me | 2020-07-03 | -1/+1 | ||
| | | | | | |||||
| | * | | | Only allow moderators to use the entire cog | 2020-07-03 | -3/+5 | ||
| | | | | | |||||
| | * | | | Move log to before what it's logging executes. | 2020-07-03 | -6/+8 | ||
| | | | | | | | | | | | | | | | | | This makes sure the log will be made, since the operations executed are now below it. | ||||
| | * | | | Remove precision kwarg usage | 2020-07-03 | -9/+6 | ||
| | | | | | |||||
| | * | | | Use total_seconds method instead of seconds attribute | 2020-07-01 | -1/+1 | ||
| | | | | | |||||
| | * | | | Add comment explaining TypeError | 2020-07-01 | -0/+2 | ||
| | | | | | |||||
| | * | | | Catch TypeError when the slowmode delay is 0 seconds | 2020-07-01 | -1/+9 | ||
| | | | | | |||||
| | * | | | Forgot an await in the Duration converter | 2020-07-01 | -1/+1 | ||
| | | | | | |||||
| | * | | | Create DurationDelta converter and humanize timedelta output for Slowmode cog. | 2020-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 cog | 2020-07-01 | -0/+11 | ||
| | | | | | |||||
| | * | | | Create docstring for Slowmode cog | 2020-07-01 | -0/+1 | ||
| | | | | | |||||
| | * | | | Add reset_slowmode function | 2020-07-01 | -0/+9 | ||
| | | | | | |||||
| | * | | | Ensure slowmode delay is between 0 and 21600 seconds before setting it | 2020-07-01 | -4/+10 | ||
| | | | | | |||||
| | * | | | Implement the set_slowmode function | 2020-07-01 | -1/+5 | ||
| | | | | | |||||
| | * | | | Implement the get_slowmode function | 2020-07-01 | -0/+2 | ||
| | | | | | |||||
| | * | | | Create boilerplate code for the commands | 2020-07-01 | -1/+18 | ||
| | | | | | |||||
| | * | | | Add base Slowmode cog | 2020-07-01 | -0/+15 | ||
| |/ / / | |||||
| * | | | Merge pull request #981 from aeros/issue926-paginate-long-lines | 2020-06-27 | -27/+149 | ||
| |\ \ \ | | | | | | | | | Improve LinePaginator to support long lines | ||||
| | * | | | In LinePaginator.__init__(), fix scale_to_size ValueError message | 2020-06-28 | -1/+1 | ||
| | | | | | | | | | | | | | Co-authored-by: Mark <[email protected]> | ||||
| | * | | | Lower LinePaginator max_size arg in CustomHelpCommand.send_bot_help | 2020-06-28 | -1/+1 | ||
| | | | | | |||||
| | * | | | Fix grammar in LinePaginator.add_lines() docstring | 2020-06-28 | -1/+1 | ||
| | | | | | |||||
| | * | | | In LinePaginator, add limit of 2000 for max_size and scale_to_size args | 2020-06-28 | -1/+11 | ||
| | | | | | |||||
| | * | | | Remove shortening of nomination reasons | 2020-06-27 | -3/+3 | ||
| | | | | | | | | | | | | | | | | | | | | | * Since LinePaginator now supports long lines, there's no need to shorten the nomination reason to 200 characters. | ||||
| | * | | | In LinePaginator, use ellipses to show line continuation | 2020-06-27 | -1/+5 | ||
| | | | | | |||||
| | * | | | Add block comments to LinePaginator.add_line() | 2020-06-27 | -0/+2 | ||
| | | | | | |||||
| | * | | | Improve LinePaginator docstrings | 2020-06-27 | -5/+15 | ||
| | | | | | |||||
| | * | | | Add space before comment in LinePaginator._split_remaining_words() | 2020-06-26 | -0/+1 | ||
| | | | | | | | | | | | | | Co-authored-by: Leon Sandøy <[email protected]> | ||||
| | * | | | Improve LinePaginator.__init__() ValueError message | 2020-06-26 | -1/+1 | ||
| | | | | | | | | | | | | | Co-authored-by: Leon Sandøy <[email protected]> | ||||
| | * | | | Merge branch 'master' into issue926-paginate-long-lines | 2020-06-26 | -399/+1140 | ||
| | |\ \ \ | |/ / / |/| | | | |||||
| * | | | | Merge pull request #1002 from ↵ | 2020-06-22 | -23/+93 | ||
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | python-discord/bug/backend/bot-50/sync-ignore-guilds Sync: ignore events from other guilds | ||||
| | * \ \ \ | Merge branch 'master' into bug/backend/bot-50/sync-ignore-guilds | 2020-06-22 | -109/+375 | ||
| | |\ \ \ \ | |/ / / / |/| | | | | |||||
| * | | | | | Merge pull request #950 from ks129/logging-tests | 2020-06-22 | -0/+32 | ||
| |\ \ \ \ \ | |_|_|_|/ |/| | | | | Created tests for startup logging | ||||
| | * | | | | Merge branch 'master' into logging-tests | 2020-06-22 | -790/+2732 | ||
| | |\ \ \ \ | |/ / / / |/| | | | | |||||
| * | | | | | Merge pull request #1009 from python-discord/bug/mod/bot-2a/webhook-clyde | 2020-06-20 | -8/+57 | ||
| |\ \ \ \ \ | | | | | | | | | | | | | Fix 400 when "clyde" is in any webhook username | ||||
| | * \ \ \ \ | Merge branch 'master' into bug/mod/bot-2a/webhook-clyde | 2020-06-20 | -100/+285 | ||
| | |\ \ \ \ \ | |/ / / / / |/| | | | | | |||||
| * | | | | | | Merge pull request #1015 from python-discord/kwzrd/pipenv-html-script | 2020-06-19 | -0/+1 | ||
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | Add Pipenv script for html coverage report | ||||
| | * | | | | | | Pipenv: add script for html coverage report | 2020-06-19 | -0/+1 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Similarly to the `report` script, this removes the need to invoke coverage when generating the html report. | ||||
| * | | | | | | | Merge pull request #1003 from ↵ | 2020-06-19 | -16/+47 | ||
| |\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | python-discord/bug/filters/bot-58/removers-ignore-dms Ignore DMs in token and webhook removers | ||||
| | * | | | | | | Merge branch 'master' into bug/filters/bot-58/removers-ignore-dms | 2020-06-19 | -85/+238 | ||
| | |\ \ \ \ \ \ | |/ / / / / / |/| | | | | | | |||||
| * | | | | | | | Merge pull request #892 from Akarys42/#364-offensive-msg-autodeletion | 2020-06-17 | -9/+80 | ||
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | #364 offensive msg autodeletion | ||||
| | * | | | | | | | Update deletion scheduler to use latest watchlist configuration | 2020-06-17 | -17/+5 | ||
| | | | | | | | | | |||||
| | * | | | | | | | Merge branch 'master' into #364-offensive-msg-autodeletion | 2020-06-17 | -2517/+7259 | ||
| | |\ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | | |||||
| * | | | | | | | | Merge pull request #991 from crazygmr101/feature/cooldown-tag | 2020-06-17 | -0/+20 | ||
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | Create cooldown.md | ||||
| | * | | | | | | | | Update bot/resources/tags/customcooldown.md | 2020-06-15 | -3/+1 | ||
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Mark <[email protected]> | ||||
| | * | | | | | | | | Merge branch 'master' into feature/cooldown-tag | 2020-06-12 | -76/+179 | ||
| | |\ \ \ \ \ \ \ \ | |||||
| | * | | | | | | | | | Add scheme to URL | 2020-06-12 | -1/+1 | ||
| | | | | | | | | | | | |||||
| | * | | | | | | | | | Update customcooldown.md | 2020-06-12 | -0/+2 | ||
| | | | | | | | | | | | |||||