| Commit message (Collapse) | Author | Age | Lines |
| |\ |
|
| | |\ |
|
| | | | |
|
| | | |
| | |
| | |
| | | |
list comprehension.
|
| | | |
| | |
| | |
| | | |
the rest.
|
| | |\ \ |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
over 18).
Changed the return format a little bit for the fetch_posts() function, instead of returning an empty list, it returns a list with a dict holding the error message.
|
| |\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
python-discord/sebastiaan/features/whitelister-sprinters
Whitelist Core Dev Sprinters from our filters
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
We were using different whitelists for different filters, making it
slightly more difficult to maintain the role whitelists. They now all
use the same list, which combines our staff roles with the Python
community role and the sprinters role.
Signed-off-by: Sebastiaan Zeeff <[email protected]>
|
| |/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
I've added the sprinters role to the filter whitelist. This will not
affect antispam and antimalware just yet, as they currently default to
using the STAFF_ROLES constant.
I've also kaizened the config-default.yml file by ensuring there are two
linebreaks between all sections.
Signed-off-by: Sebastiaan Zeeff <[email protected]>
|
| |\ \ \ \ |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Only the `member` is variable, no need to log the rest.
Co-authored-by: Numerlor <[email protected]>
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This will make it much easier to filter out verification kicks
when querying the infraction database.
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
It doesn't make sense for it to be at 1000 when the code gets truncated
to 1000 as well.
Fixes #1239
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This could be reproduced by editing a tracked message to a single line
of invalid Python that lacks any back ticks. The code was assuming there
would be multiple lines because that's what the default value for the
threshold is, but this threshold is not applied to edited messages.
Fixes BOT-A5
|
| |\ \ \ \ \
| |_|_|_|/
|/| | | |
| | | | |
| | | | | |
python-discord/bug/utility/829/non-py-code-detection
Code block detection rewrite
|
| | | | | | |
|
| | |\ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
* Use absolute imports in the code block modules for consistency
* Move has_lines utility function into the helpers module
* Prefix names of code block modules with underscores so they won't
get picked up as extensions by the extension manager
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
It's used for code copied from the Python REPL.
|
| | |\ \ \ \ \ |
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
A for loop is less confusing according to reviews.
|
| | | | | | | | |
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Simplify the code by removing the need to check if the category is None.
|
| | |\ \ \ \ \ \ |
|
| | | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Fix #497
|
| | |\ \ \ \ \ \ \ |
|
| | | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
If it's indented too far, the AST parser will fail.
|
| | | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
It's still useful to fix indentation to ensure AST is correctly parsed.
This function deals with the relatively common case of a the leading
spaces of the first line being left out when copy-pasting.
|
| | | | | | | | | | |
|
| | | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
Forgot to change the kwarg names when the attributes were renamed.
|
| | | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
It was still using it like it was a method of the class rather than
calling it from the channel utils module.
|
| | | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
It wasn't clear that it also parses the message content.
|
| | | | | | | | | | |
|
| | | | | | | | | | |
|
| | | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
The declaration was a bit hidden between the two regular expressions.
|
| | | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
The `has_` prefix it clarifies that they're booleans.
Co-authored-by: Numerlor <[email protected]>
|
| | |\ \ \ \ \ \ \ \
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | | |
bug/utility/829/non-py-code-detection
|
| | | | | | | | | | | |
|
| | | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | | |
* Increment `codeblock_corrections` when instructions are sent
* Import our Bot subclass instead of discord.py's
|
| | | | | | | | | | | |
|
| | | | | | | | | | | |
|
| | | | | | | | | | | |
|
| | | | | | | | | | | |
|
| | | | | | | | | | | |
|
| | | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | | |
* Change `is_help_channel` to`internally use `is_in_category`
|
| | | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | | |
* Add docstrings for modules
* Rephrase some docstrings and comments
* Fix the grammar of some comments
|
| | | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | | |
When the code block had invalid ticks, instructions for syntax
highlighting were being shown despite the code block having a valid
language.
|
| | | | | | | | | | | |
|