| Commit message (Collapse) | Author | Lines | ||
|---|---|---|---|---|
| 2020-07-03 | Move log to before what it's logging executes. | -6/+8 | ||
| This makes sure the log will be made, since the operations executed are now below it. | ||||
| 2020-07-03 | Remove precision kwarg usage | -9/+6 | ||
| 2020-07-03 | Outdated badge in README upset me | -1/+1 | ||
| 2020-07-01 | Use total_seconds method instead of seconds attribute | -1/+1 | ||
| 2020-07-01 | Add comment explaining TypeError | -0/+2 | ||
| 2020-07-01 | Catch TypeError when the slowmode delay is 0 seconds | -1/+9 | ||
| 2020-07-01 | Forgot an await in the Duration converter | -1/+1 | ||
| 2020-07-01 | Create DurationDelta converter and humanize timedelta output for Slowmode cog. | -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. | ||||
| 2020-07-01 | Add some logging for the Slowmode cog | -0/+11 | ||
| 2020-07-01 | Create docstring for Slowmode cog | -0/+1 | ||
| 2020-07-01 | Add reset_slowmode function | -0/+9 | ||
| 2020-07-01 | Ensure slowmode delay is between 0 and 21600 seconds before setting it | -4/+10 | ||
| 2020-07-01 | Implement the set_slowmode function | -1/+5 | ||
| 2020-07-01 | Implement the get_slowmode function | -0/+2 | ||
| 2020-07-01 | Create boilerplate code for the commands | -1/+18 | ||
| 2020-07-01 | Add base Slowmode cog | -0/+15 | ||
| 2020-06-28 | In LinePaginator.__init__(), fix scale_to_size ValueError message | -1/+1 | ||
| Co-authored-by: Mark <[email protected]> | ||||
| 2020-06-28 | Lower LinePaginator max_size arg in CustomHelpCommand.send_bot_help | -1/+1 | ||
| 2020-06-28 | Fix grammar in LinePaginator.add_lines() docstring | -1/+1 | ||
| 2020-06-28 | In LinePaginator, add limit of 2000 for max_size and scale_to_size args | -1/+11 | ||
| 2020-06-27 | Remove shortening of nomination reasons | -3/+3 | ||
| * Since LinePaginator now supports long lines, there's no need to shorten the nomination reason to 200 characters. | ||||
| 2020-06-27 | In LinePaginator, use ellipses to show line continuation | -1/+5 | ||
| 2020-06-27 | Add block comments to LinePaginator.add_line() | -0/+2 | ||
| 2020-06-27 | Improve LinePaginator docstrings | -5/+15 | ||
| 2020-06-26 | Add space before comment in LinePaginator._split_remaining_words() | -0/+1 | ||
| Co-authored-by: Leon Sandøy <[email protected]> | ||||
| 2020-06-26 | Improve LinePaginator.__init__() ValueError message | -1/+1 | ||
| Co-authored-by: Leon Sandøy <[email protected]> | ||||
| 2020-06-26 | In LinePaginator, truncate words that exceed scale_to_size | -12/+11 | ||
| 2020-06-26 | Correctly pass scale_to_size in LinePaginator.paginate() | -1/+2 | ||
| 2020-06-26 | Update LinePaginator.add_line() tests | -5/+5 | ||
| 2020-06-26 | Simplify LinePaginator continuation header | -4/+7 | ||
| 2020-06-26 | Fix LinePaginator new page creation | -8/+14 | ||
| 2020-06-26 | Account for spaces in LinePaginator._split_remaining_lines() | -1/+1 | ||