| Commit message (Collapse) | Author | Age | Lines |
| |
|
|
|
| |
This commit removes the angle brackets from the url in the docstring
of `ISODateTime.convert`. The reason: it's ugly.
|
| |
|
| |
Co-Authored-By: Mark <[email protected]>
|
| |
|
| |
Co-Authored-By: S. Co1 <[email protected]>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Related to https://github.com/python-discord/bot/issues/458
This commit adds a converter that automatically parses ISO-formatted
datetime strings and returns a `datetime.datetime` object. It uses
`dateutil.parser.isoparse` to do the heavy lifting, so it supports
the same formats as this method.
In addition, I have added tests that ensure that it accepts certain
formats and added a description of these 'guaranteed' formats to the
`ISODate.convert` docstring.
This commit should make it easy to implement #485
|
| |\
| |
| | |
Adjust development workflow inline with new `site` changes.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |/ |
|
| |\
| |
| | |
Fix help command invocation
|
| | |
| |
| | |
Co-Authored-By: Mark <[email protected]>
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| | |
Anyone who is not a Rockstar, a Partner, or a member of staff
will still be redirected to #bot-commands.
|
| |\ \
| | |
| | | |
Ensure docker containers are published only for master branch builds.
|
| |/ / |
|
| |\ \
| |/
|/| |
Update flake8-annotations & fix missing lints
|
| | | |
|
| |/ |
|
| |\
| |
| | |
Merge infraction edit commands
|
| | |\
| |/
|/| |
|
| |\ \
| | |
| | | |
Minor moderation mods
|
| | |\ \
| |/ /
|/| | |
|
| |\ \ \
| | | |
| | | | |
Free Command Fix
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
- For the sake of code style and consistency, the lambda has been swapped with operator.itemgetter
Signed-off-by: Daniel Brown <[email protected]>
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
- Moved the sorted function to its own line and instead passed the generated list for code clarity.
Signed-off-by: Daniel Brown <[email protected]>
|
| |/ / /
| | |
| | |
| | |
| | |
| | | |
- Fixed bug where if two channels had the same last message timestamp the command would error out.
Signed-off-by: Daniel Brown <[email protected]>
|
| | | |
| | |
| | |
| | | |
Closes #325
|
| | | |
| | |
| | |
| | |
| | |
| | | |
KAIZEN!
Closes #385
|
| | | |
| | |
| | |
| | | |
Closes #453
|
| |/ /
| |
| |
| |
| |
| |
| | |
Add previous permanent mute invocations as aliases of their
respective mute commands.
Closes #318
|
| |\ \
| | |
| | | |
Note Type Correction
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The watchchannel ABC defined its own private utility function to
format ISO datetime strings to something more human-readable. I have
removed this private utility function and replaced the calls to it
with calls to the new `format_infraction` utility function defined in
bot.utils.time.
In addition, I've changed the utility function to use `dateutil` to
parse the datetime string, since `dateutil.parser.isoparse` supports
the strings our API generates out of the box. With the built-in
`datetime.datetime.fromisoformat`, we needed to prepare the string by
slicing of the `Z` timezone indicator.
|
| | | |
| | |
| | |
| | | |
The format used is %Y-%m-%d %H:%M.
|
| | | | |
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Both the duration and the reason can be edited with the new command.
* Remove try-except; the default error handler is already adequate
* Remove the new reason from the confirmation message
* Simplify humanisation of the timestamp in the confirmation message
* Add a converter to support permanent durations
|
| | |/
| |
| |
| |
| |
| |
| | |
Discord.py's internals use the __func__ attribute of special methods
(cog_command_error, cog_check, cog_before_invoke, cog_after_invoke).
Therefore the methods must be bound methods rather than static so that
the attribute exists.
|
| |/
|
|
|
|
| |
- In the database, notes were being listed as "warnings" despite having a type specifically for them. Changed it so that notes are now listed as the proper type.
Signed-off-by: Daniel Brown <[email protected]>
|
| |\
| |
| | |
Catch error in case of non successfull API call for new ot-names
|
| | |\
| |/
|/| |
|
| |\ \
| | |
| | | |
Add all the shields!
|
| |/ / |
|
| |\ \
| | |
| | | |
Prevent false-positives of the rich embed filter
|
| | |\ \
| |/ /
|/| | |
|
| |\ \ \
| | | |
| | | | |
Change log.error to log.exception
|
| | |\ \ \
| |/ / /
|/| | | |
|