| Commit message (Collapse) | Author | Age | Lines |
| | |
|
| | |
|
| |
|
|
| |
Unloading extensions already remove all cogs that is inside it and this is enough good for this case,
because bot still call dpy's internal function later to remove cogs not related with extensions (when exist).
|
| |
|
| |
Co-authored-by: Mark <[email protected]>
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
Made to resolve problem with Reddit cog that revoking access token raise
exception because session is closed. To solve this, I made
`Bot.closing_tasks` that bot wait before closing.
Moved all extensions and cogs removing to `remove_extension` what is
called before closing everything else because need to call `cog_unload`.
|
| |
|
|
|
| |
When user left from guild before bot can add Muted role, then catch this
error and log.
|
| |
|
|
|
|
|
| |
Moved exception logging when cog is being unloaded and messages is still
not consumed from `cog_unload` to `consume_messages` itself in
try-except block to avoid case when requesting result too early
(before cancel finished).
|
| |\
| |
| | |
#364 offensive msg autodeletion
|
| | | |
|
| | |\
| |/
|/| |
|
| |\ \
| | |
| | | |
Create cooldown.md
|
| | | |
| | |
| | | |
Co-authored-by: Mark <[email protected]>
|
| | |\ \ |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | | |
Co-authored-by: Mark <[email protected]>
|
| | | | |
| | | |
| | | | |
Co-authored-by: Joseph Banks <[email protected]>
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
Apply suggestions from code review
Co-authored-by: Joseph Banks <[email protected]>
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| |\ \ \ \
| | | | |
| | | | | |
Check infraction reason isn't None before shortening it
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The reason None check should be nested to avoid affecting the else/elif
statements that follow.
|
| | | | | | |
|
| | | | | | |
|
| |\ \ \ \ \
| | | | | |
| | | | | | |
Add persistence to the help channel system
|
| | |\ \ \ \ \
| |/ / / / /
|/| | | | | |
|
| | |/ / / /
|/| | | | |
|
| | | | | | |
|
| |\ \ \ \ \
| | | | | |
| | | | | | |
Make token detection more robust and completely rewrite its tests
|
| | |\ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | | |
bug/filters/928/non-ascii-token
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
It's redundant; there's no benefit here in abstracting two lines of code
into a function.
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
This covers the case when a token is matched, but its user ID and
timestamp turn out to be invalid.
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
It now supports the changes that switched to finditer, added match
groups, and added the Token NamedTuple. It also accounts for the
is_maybe_token function being removed.
For the sake of simplicity, call assertions on is_valid_user_id and
is_valid_timestamp were not made.
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
The function was removed due to redundancy. Therefore, its tests are
obsolete.
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
The tests for valid inputs and invalid inputs were split to make them
more readable.
|
| | | | | | | | |
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
`find_token_in_message` now uses the latter so the tests should adjust
accordingly.
|
| | | | | | | | |
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
It has to account for the addition of groups. It's easiest to compare
the entire string so `finditer` is used to return re.Match objects;
the tuples of `findall` would be cumbersome. Also threw in a change
to use `assertCountEqual` cause the order doesn't really matter.
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
It was broken due to the addition of groups. Rather than returning the
full match, `findall` returns groups if any exist. The test was
comparing a tuple of groups to the token string, which was of course
failing. Now `fullmatch` is used cause it's simpler - just check for
`None` and don't worry about iterating matches to search.
|