| Commit message (Collapse) | Author | Age | Lines |
| |\
| |
| | |
Use == instead of str.startswith when getting the source for a Command
|
| | |\
| |/
|/| |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
reaction. (#1471)
* Remove reactions from everyone
* Make flake8 happy
* Make flake8 happy again
* Remove reactions in check functions
* Make flake8 happy for the last time
* Update bot/pagination.py
Co-authored-by: Kieran Siek <[email protected]>
* Make create_task one line and return False in checks
* Fix return so it returns either True or False
* Use scheduling.create_task and suppress HTTPException
* Suppress HTTPException in scheduling.create_task
* Remove double if-statements
Co-authored-by: Mark <[email protected]>
* change suppress_exceptions to suppressed_exceptions
* Make suppressed_exceptions a kwargs for _log_task_exception
* Update scheduling.create_task call to correspond with *args
* Fix NameError: reaction, user -> reaction_, user_
* Update scheduling.create_task call to correspond with *args in messages.wait_for_deletion
* reaction -> reaction_
* Ignore reactions from the bot
* Fix type annotations for create_task
* Refactor add_reaction check to a separate function
* Name the remove_reaction task
Co-authored-by: Kieran Siek <[email protected]>
Co-authored-by: Mark <[email protected]>
|
| |\ \ |
|
| | |\ \
| |/ /
|/| | |
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
The meaning of 'moved' may not have been clear for people that weren't familiar
with how the system works
Co-authored-by: MarkKoz <[email protected]>
|
| | | |
| | |
| | | |
Co-authored-by: Kieran Siek <[email protected]>
|
| | | |
| | |
| | |
| | |
| | | |
A base url without a trailing slash won't join properly with the relative
paths, raising an error my prevent some mistakes when a new inventory is added
|
| | |\ \ |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
shorten collapses the whitespace, causing issues with codeblocks
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Moving the block handling the fetching into a separate method meant that
symbol_name was no longer updated inside the create_symbol_embed method, causing
the whole message to be included in the embed title in case the space shortcut
was used
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Previously the code used limits that apply to raw messages, not embeds.
Both the description and footer limits are separate, while their
individual limits are 2048 chars instead of 2000.
The footer overhead was removed from the max description length
and the footer is now truncated to 200 chars which is roughly 2 lines
|
| | | | |
| | | |
| | | |
| | | | |
Co-authored-by: MarkKoz <[email protected]>
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
While the previous code was safe, the synchronization was spread out
over different modules and was hard to wrap around. Additionally changes
could introduce context switches without the author being aware of them
causing potential race conditions with the refresh.
Moving the whole body into the with block solves both of these issues
|
| | | | |
| | | |
| | | |
| | | | |
Tests for this were added additionally
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
After the move to a separate method, the docstring now documents the
behaviour so a comment is unnecessary
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
The method was also renamed from get_symbol_embed to create_symbol_embed
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
The tests were not adjusted after the converter was corrected to accept
digits
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
We can still provide th user with at least the link to the docs,
for which we already have handling in the cog with a generic
"unable to parse message", using exceptions for that would mean setting
it here, immediately catching it and then providing the same or very
similar message.
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
No exceptions can be raised from the two lines of code because of the
data structures used, moving it out makes for flatter code.
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
Co-authored-by: MarkKoz <[email protected]>
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
Co-authored-by: MarkKoz <[email protected]>
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | | |
Co-authored-by: MarkKoz <[email protected]>
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The doc_cache coro was changed to be awaited directly instead of
creating a task to ensure the cache is populated before the item is
deleted
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
The redis results are already being set in the BatchParser
for all symbols
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Co-authored-by: MarkKoz <[email protected]>
fixup! Docstring typos and style changes
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
As we extend the left side of a list now, using a deque that provides
a direct method for it is more fitting.
fixup! Use deque instead of a list
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
This introduces a possibly redundant check for the doc_item being None
but results in flatter code with less duplication
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Using extend caused old items, including the ones that were requested
by users and pushed to the front, to be pushed back by all of the items
on the new page, possibly significantly delaying their parsing
|
| | | | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
The last index will always be the largest one so there's no need
for max to search for it
|
| | | | | |
|
| | | | | |
|