aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* Add lt and gt angle brackets to bracket pairsGravatar Numerlor2021-02-23-0/+1
|
* Add deletedoccache alias to the clear cache commandGravatar Numerlor2021-02-23-1/+1
|
* cleanup->clean_upGravatar Numerlor2021-02-23-2/+2
|
* Remove unnecessary commentsGravatar Numerlor2021-02-23-10/+0
| | | | The comments explain things that should be clear, or basic concepts
* Use "inventories" when referring to the cog's collection of sphinx invsGravatar Numerlor2021-02-23-9/+9
| | | | | | | | | | Previously in some context inventory referred both to a single "inventory" that we got from a remote objects.inv and to the internal cog inventories. Always referring to the cog's inventories as plural The update_single docstring was also changed from rebuild to build, as the method doesn't handle anything with a preexisting inventory with the same symbols being in the cog's inventories
* Simplify conditionGravatar Numerlor2021-02-23-1/+1
|
* Simplify the _split_parameters implementationGravatar Numerlor2021-02-23-30/+18
| | | | | | | | | The main simplification was getting rid of keeping track of string depth which was unnecessary, as we can just always skip them as was being done for strings inside of brackets. The branching was also simplified to make sure less unnecessary checks were being done with a bit less confusing elifs.
* Fix docstring typosGravatar Numerlor2021-02-23-10/+10
|
* Remove unnecessary use of partialGravatar Numerlor2021-02-05-6/+4
| | | | | | | run_in_executor can provide args to the func it's passed in, making the use of partial unnecessary. This will also make it more convenient to move to asyncio.to_thread when the codebase is switched to python 3.9
* Avoid from import on _batch_parserGravatar Numerlor2021-02-03-3/+2
| | | | | The tests import the modules the other way around causing a circular import
* Use create_task utilGravatar Numerlor2021-02-03-2/+3
|
* Create a task for setting the redis result instead of awaitingGravatar Numerlor2021-02-03-1/+1
| | | | | The queue parsing doesn't depend on anything with redis, so the await only delays the result being set on the future.
* Move BeautifulSoup parsing into an executorGravatar Numerlor2021-02-03-1/+4
|
* Remove url lockGravatar Numerlor2021-02-03-3/+1
| | | | | | The items are added to the futures dict before a context switch can occur, making the subsequent requests to the url skip the queue extend and suspend at the future await
* Use more consistent naming for doc items and symbolsGravatar Numerlor2021-02-03-71/+71
| | | | Trailing commas were also added where missing
* Import module directly to avoid circular dependency and use of typeGravatar Numerlor2021-02-03-13/+11
|
* Attempt to resolve first part of the argument in case of a failed lookupGravatar Numerlor2021-02-02-2/+12
|
* Require a set of names to ignore instead of a blanket ignoringGravatar Numerlor2021-01-30-16/+16
| | | | | | | As work is done on the modules the wrapper and wrapped functions are in more conflicts can occur, previously this could be missed as the info log that was done in case the error was suppressed was done when modules were being initialized during which there is a logging spam.
* Cancel current task inside coro to not keep track of attempts manuallyGravatar Numerlor2021-01-23-8/+5
| | | | | | | | | The scheduler shields the coroutine from cancellation so we can cancel the scheduler's tasks inside of it to avoid the error from multiple tasks with the same id trying to be scheduled which the manual tracking of attempts solved Co-authored-by: MarkKoz <[email protected]>
* Wrap whole string in shortenGravatar Numerlor2021-01-23-1/+1
| | | | | | | This helps avoid subtracting the length of "Moved: " from the shorten index Co-authored-by: MarkKoz <[email protected]>
* Avoid errors when the first element is longer than the truncation indexGravatar Numerlor2021-01-23-3/+10
|
* lock markdownify version to 0.6.1Gravatar Numerlor2021-01-23-5/+5
| | | | | the 0.6.3 update brought a change that fails to ignore newlines in the html, introducing unnecessary lines into the output
* Create a namespace varGravatar Numerlor2021-01-23-8/+9
|
* Properly handle cache being clearedGravatar Numerlor2021-01-23-13/+16
| | | | | | | | | | | | Previously the code deleted the entry of all of the DocItems of the page after its contents were requested once, but this caused problems when the cache was cleared when it expired. Instead of deleting the entry to check if it should be queued on the next item request, we keep it and create an entry in the _item_futures dict for all items again and check for containment there. To avoid populating the queue multiple times with the same item in some cases the futures cleanup task will now only run when the queue is empty
* Merge remote-tracking branch 'upstream/master' into doc-impGravatar Numerlor2021-01-22-323/+1314
|\
| * Merge pull request #1346 from python-discord/bug/help/1341/race-conditionsGravatar Joe Banks2021-01-22-193/+228
| |\
| | * Merge branch 'master' into bug/help/1341/race-conditionsGravatar Joe Banks2021-01-22-4/+3
| | |\ | | |/ | |/|
| * | Merge pull request #1376 from python-discord/update-badgesGravatar Matteo Bertucci2021-01-22-4/+3
| |\ \ | | | | | | | | Update badges on the README file
| | * | Use the SVG badge on the READMEGravatar Matteo Bertucci2021-01-22-1/+1
| | | |
| | * | Update badges on the README fileGravatar Matteo Bertucci2021-01-22-4/+3
| |/ /
| | * Merge branch 'master' into bug/help/1341/race-conditionsGravatar Joe Banks2021-01-22-820/+1056
| | |\ | | |/ | |/|
| * | Fix aliases of shadow tempbanGravatar Joe Banks2021-01-21-1/+1
| | |
| * | Merge pull request #1374 from python-discord/mbaruh/sm-statsGravatar ks1292021-01-21-26/+23
| |\ \ | | | | | | | | Added slowmode statistic for python-general
| | * | Added slowmode tracking to dpy and ot0Gravatar Boris Muratov2021-01-21-2/+12
| | | |
| | * | Merge branch 'master' into mbaruh/sm-statsGravatar Matteo Bertucci2021-01-21-9/+16
| | |\ \ | | |/ / | |/| |
| * | | Merge PR #1202 - fuzzy match the role commandGravatar Mark2021-01-20-9/+16
| |\ \ \
| | * \ \ Merge branch 'master' into fuzz-the-matchesGravatar Mark2021-01-20-59/+987
| | |\ \ \ | | |/ / / | |/| | |
| | * | | Merge branch 'master' into fuzz-the-matchesGravatar kosayoda2021-01-18-3410/+4835
| | |\ \ \
| | * \ \ \ Merge branch 'master' into fuzz-the-matchesGravatar Leon Sandøy2020-10-10-615/+695
| | |\ \ \ \
| | * | | | | Avoid duplicate roles.Gravatar kosayoda2020-10-01-5/+5
| | | | | | |
| | * | | | | Use basic scorer to fuzz a bit stricter.Gravatar kosayoda2020-10-01-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This prevents weird fuzz matches like `!role a b c d` working.
| | * | | | | Fuzzy match roles for `!role` command.Gravatar kosayoda2020-10-01-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An arbitrary cutoff score of 80 is chosen because it works. A bug in the test for the same command is also fixed.
| | | | | * | Changed slowmode reset testsGravatar mbaruh2021-01-21-12/+4
| | | | | | |
| | | | | * | Added slowmode stat for python-general.Gravatar mbaruh2021-01-21-4/+8
| | | | | | |
| | | | | * | Slowmode reset now uses slowmode setGravatar mbaruh2021-01-21-10/+1
| | |_|_|/ / | |/| | | |
| * | | | | Prevent bot from sending DMs to itselfGravatar Joe Banks2021-01-20-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Fixes BOT-KX
| * | | | | Merge pull request #1188 from ks129/help-disabled-commandGravatar Xithrius2021-01-19-4/+13
| |\ \ \ \ \ | | | | | | | | | | | | | | Help: Add handling of disabled commands to avoid DisabledCommand error
| | * \ \ \ \ Merge branch 'master' into help-disabled-commandGravatar Xithrius2021-01-19-2857/+3834
| | |\ \ \ \ \ | | |/ / / / / | |/| | | | |
| * | | | | | Merge pull request #1368 from python-discord/mbaruh/filtersGravatar Boris Muratov2021-01-19-9/+1
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | Remove additional embed message
| | * | | | | | Remove additional embed messageGravatar Boris Muratov2021-01-19-9/+1
| |/ / / / / /