| Commit message (Collapse) | Author | Age | Lines |
| ... | |
| |\ \ \
| | | |
| | | | |
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
|
| | |\ \ \ \
| |/ / / /
|/| | | | |
|
| |\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Docker Build & CI Refinements
Co-authored-by: S. Co1 <[email protected]>
|
| | | | | | | |
|
| | | | | | |
| | | | | |
| | | | | | |
Closes #445
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | | |
|
| |/ / / / / |
|
| | | | | | |
|
| | |\ \ \ \ |
|
| | |/| | | |
| | | | | |
| | | | | |
| | | | | | |
python-discord-master
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
See issue #382
|
| | |_|/ / /
|/| | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
https://github.com/python-discord/bot/issues/293
The rich embed filter is plagued by false positives now Discord has
added more custom preview embeds for various websites. Since these
embeds have the `rich` type instead of the `link` type, these embeds
triggered the filter we had in place.
This commit remedies that by using the existing URL regex pattern to
list all the URLs contained in the message content and then checking
if the embed url is a member of that list. If so, it's very likely
that the embed was auto-generated from that URL, so we should ignore
it. This approach deviates slightly from that outlined in #293.
This does increase the probability of a false-negative, as a "true"
user-generated rich embed could also have a url that's contained in
the message body. However, I've checked most of the triggers we have
had in the past and none of the legitimate triggers would have been a
false-negative under the new rules. Therefore, I think it's very
reasonable to adopt this strategy.
In addition to the change in behavior of the rich embed filter, I
have also kaizened the existing regex patterns by compiling them at
load time. Since we check a lot of regex patterns for every message
received by the bot, this should be beneficial for performance.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
After a short discussion in the core-dev team, we decided to not use
retry logic for a failed API call for new off-topic-names. We may
introduce something similar in the future, but we're not sure on the
direction we want to take yet.
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | | |
If an exception occurred
|
| | | | | |
| | | | |
| | | | | |
`bot.api.ResponseCodeError` is now imported
|
| | | | |\ \
| |_|_|/ /
|/| | | | |
|
| |\ \ \ \ \
| |_|/ / /
|/| | | | |
Fix failing duration conversion
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
In this commit, I've restructured the Duration converter's docstring
to a more readable format: a bullet point list.
|