aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| | * | | | | | | | | | | Move markdown truncation into parser moduleGravatar Numerlor2020-07-19-25/+31
| | | | | | | | | | | | |
| | * | | | | | | | | | | Move main parsing methods into a new moduleGravatar Numerlor2020-07-18-96/+108
| | | | | | | | | | | | |
| | * | | | | | | | | | | Move async_cache into a separate moduleGravatar Numerlor2020-07-18-31/+34
| | | | | | | | | | | | |
| | * | | | | | | | | | | Create a package for the Doc cog.Gravatar Numerlor2020-07-18-6/+8
| | | | | | | | | | | | |
| | * | | | | | | | | | | Rename inventories to doc_symbols.Gravatar Numerlor2020-07-14-10/+10
| | | | | | | | | | | | |
| | * | | | | | | | | | | Change docstrings to use suffixed command names.Gravatar Numerlor2020-07-14-3/+3
| | | | | | | | | | | | |
| | * | | | | | | | | | | Change package name converter to only accept _a-z.Gravatar Numerlor2020-07-14-15/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Package names are now directly used for stats, where the lowercase a-z characters and _ are used.
| | * | | | | | | | | | | Make the symbol parameter optional.Gravatar Numerlor2020-07-14-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The commands were changed to be greedy, this however made them required arguments breaking the access to the default listing of the available inventories
| | * | | | | | | | | | | Add doc suffix to doc commands.Gravatar Numerlor2020-07-14-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `set` command shadowed the `set` symbol, causing the command to seemingly not work. A suffix was added to all commands to keep them consistent and future proof; the shorthands were kept unchanged
| | * | | | | | | | | | | Remove codeblock from symbol embed title.Gravatar Numerlor2020-07-10-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code block caused the url to not highlight the title text on mobile
| | * | | | | | | | | | | Use the group attribute instead of checking the symbol name.Gravatar Numerlor2020-07-07-1/+1
| | | | | | | | | | | | |
| | * | | | | | | | | | | Create method to fetch and create a BeautifulSoup object from an url.Gravatar Numerlor2020-07-07-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moving this part of the logic into a separate method allows us to put a cache on it, which caches the whole HTML document from the given url, removing the need to do requests to the same URL for every symbol behind it.
| | * | | | | | | | | | | Intern `group_names`Gravatar Numerlor2020-07-06-1/+4
| | | | | | | | | | | | |
| | * | | | | | | | | | | Add option for user to delete the not found message before it's auto deleted.Gravatar Numerlor2020-06-29-4/+11
| | | | | | | | | | | | |
| | * | | | | | | | | | | Trigger typing in converter instead of command.Gravatar Numerlor2020-06-29-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The converter does a web request so triggering typing in the command itself left out a period where the bot seemed inactive.
| | * | | | | | | | | | | Add stat for packages of fetched symbols.Gravatar Numerlor2020-06-29-10/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An additional variable is added to the DocItem named tuple to accommodate this. The `_package_name` is separated from `api_package_name` it previously overwrote and is now used for the stats and renamed symbols because the names are in a friendlier format.
| | * | | | | | | | | | | Only update added inventory instead of all.Gravatar Numerlor2020-06-28-1/+1
| | | | | | | | | | | | |
| | * | | | | | | | | | | Only include one newline for `p` tags in `li` elements.Gravatar Numerlor2020-06-27-0/+7
| | | | | | | | | | | | |
| | * | | | | | | | | | | Redesign `find_all_text_until_tag` to search through all direct children.Gravatar Numerlor2020-06-27-27/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous approach didn't work for arbitrary tags with text.
| | * | | | | | | | | | | Strip backticks from symbol input.Gravatar Numerlor2020-06-21-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows the user to wrap symbols in codeblocks to avoid markdown.
| | * | | | | | | | | | | Correct return when a module symbol could not be parsed.Gravatar Numerlor2020-06-21-9/+8
| | | | | | | | | | | | |
| | * | | | | | | | | | | Fix typehint.Gravatar Numerlor2020-06-21-1/+1
| | | | | | | | | | | | |
| | * | | | | | | | | | | Renamed existing symbols from `NO_OVERRIDE_GROUPS` instead of replacing.Gravatar Numerlor2020-06-21-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before, when a symbol from the group shared the name with a symbol outside of it the symbol was simply replaced and lost. The new implementation renames the old symbols to the group_name.symbol format before the new symbol takes their place.
| | * | | | | | | | | | | Add symbol group name to symbol inventory entries.Gravatar Numerlor2020-06-21-10/+17
| | | | | | | | | | | | |
| | * | | | | | | | | | | Remove unnecessary join.Gravatar Numerlor2020-06-21-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `find_all_text_until_tag` already returns a string so a join is not needed.
| | * | | | | | | | | | | Also check signatures before selected symbol when collecting 3 signatures.Gravatar Numerlor2020-06-21-1/+5
| | | | | | | | | | | | |
| | * | | | | | | | | | | Account for `NavigableString`s when gathering text.Gravatar Numerlor2020-06-21-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `find_next()` only goes to tags, leaving out text outside of them when parsing.
| | * | | | | | | | | | | Make sure only class contents are included, without methods.Gravatar Numerlor2020-06-18-13/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When parsing classes, methods would sometimes get included causing bad looking markdown to be included in the description, this is solved by collecting all text *up to* the next dt tag. fixes: #990
| | * | | | | | | | | | | Move symbol parsing into separate methods.Gravatar Numerlor2020-06-18-23/+43
| | | | | | | | | | | | |
| | * | | | | | | | | | | Skip symbols with slashes in them.Gravatar Numerlor2020-06-17-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The symbols mostly point to autogenerated pages, and do not link to specific symbols on their pages and are thus unreachable with the current implementation.
| | * | | | | | | | | | | Make doc get greedy.Gravatar Numerlor2020-06-17-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows us to find docs for symbols with spaces in them.
| | * | | | | | | | | | | Resolve relative href urls in a html elements.Gravatar Numerlor2020-06-17-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most docs will use relative urls to link across their pages, without resolving them ourselves the links remain unusable in discord's markdown and break out of codeblocks on mobile.
| | | | | | | | | | * | | Use == instead of str.startswithGravatar ToxicKidz2021-04-12-2/+3
| | |_|_|_|_|_|_|_|/ / / | |/| | | | | | | | | |
| * | | | | | | | | | | Merge pull request #1516 from ToxicKidz/sorted-available-channelsGravatar Hassan Abouelela2021-04-11-1/+3
| |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | Sort the available help channels in #how-to-get-help by position
| | * \ \ \ \ \ \ \ \ \ \ Merge branch 'main' into sorted-available-channelsGravatar Hassan Abouelela2021-04-11-17/+95
| | |\ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / | |/| | | | | | | | | | |
| * | | | | | | | | | | | Merge pull request #1513 from python-discord/bug/filters/1469/invis-charsGravatar ChrisJL2021-04-11-17/+95
| |\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Filtering: remove invisible characters before checking filters
| | * \ \ \ \ \ \ \ \ \ \ \ Merge branch 'main' into bug/filters/1469/invis-charsGravatar ChrisJL2021-04-11-23/+101
| | |\ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / | |/| | | | | | | | | | | |
| | * | | | | | | | | | | | Filtering: use a more thorough regex for zalgo & invisible charsGravatar MarkKoz2021-04-11-35/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Install the regex package to take advantage of its support for Unicode categories.
| | * | | | | | | | | | | | Filtering: remove invisible characters before checking filtersGravatar MarkKoz2021-04-09-0/+22
| | | |_|_|_|_|_|_|_|_|/ / | | |/| | | | | | | | | |
| | | * | | | | | | | | | Sort the available help channels in #how-to-get-help by positionGravatar ToxicKidz2021-04-11-1/+3
| | |/ / / / / / / / / / | |/| | | | | | | | | |
| * | | | | | | | | | | Merge pull request #1414 from python-discord/dynamic-available-message-patchGravatar Xithrius2021-04-11-0/+54
| |\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | Reworked dynamic available help message logic.
| | * \ \ \ \ \ \ \ \ \ \ Merge branch 'main' into dynamic-available-message-patchGravatar Xithrius2021-04-11-25/+49
| | |\ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / | |/| | | | | | | | | | |
| * | | | | | | | | | | | Merge pull request #1503 from python-discord/tp-get_review-commandGravatar Matteo Bertucci2021-04-11-23/+47
| |\ \ \ \ \ \ \ \ \ \ \ \ | | |_|/ / / / / / / / / / | |/| | | | | | | | | | | Add a !tp get_review command to get the nomination text without posting it
| | * | | | | | | | | | | Merge branch 'main' into tp-get_review-commandGravatar Matteo Bertucci2021-04-11-8/+205
| | |\ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / | |/| | | | | | | | | | |
| * | | | | | | | | | | | Merge pull request #1511 from onerandomusername/defcon-voice-shutdownGravatar Matteo Bertucci2021-04-09-2/+2
| |\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Close voice channels with defcon shutdown
| | * | | | | | | | | | | | Close voice channels with defcon shutdownGravatar onerandomusername2021-04-08-2/+2
| |/ / / / / / / / / / / /
| | * | | | | | | | | | | Recruitment: Don't use emoji literalsGravatar Matteo Bertucci2021-04-11-9/+9
| | | | | | | | | | | | |
| | * | | | | | | | | | | Talentpool: loop style changeGravatar Matteo Bertucci2021-04-06-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: ToxicKidz <[email protected]>
| | * | | | | | | | | | | Properly handle the lack of nomination of a userGravatar Matteo Bertucci2021-04-06-2/+2
| | | | | | | | | | | | |
| | * | | | | | | | | | | Use emoji names in nomination bodyGravatar Matteo Bertucci2021-04-06-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This caused unicode errors in Discord attachment previews.