aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| | | | | | | | | | * | Improve module description searchingGravatar Numerlor2019-11-02-7/+35
| | | | | | | | | | | |
| | | | | | | | | | * | Get up to 3 signatures of a symbolGravatar Numerlor2019-11-02-16/+14
| | | | | | | | | | | |
| | | | | | | | | | * | Get symbol description by searching for a dd tag instead of traversing the ↵Gravatar Numerlor2019-11-02-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | siblings
| | | | | | | | | | * | Do not cut off description in code blocksGravatar Numerlor2019-11-02-1/+7
| | | | | | | | | | | |
| | | | | | | | | | * | Grammar check commentGravatar Numerlor2019-10-21-1/+1
| | | | | | | | | | | |
| | | | | | | | | | * | Allow embeds to not include signatures in case the symbol is a moduleGravatar Numerlor2019-10-21-11/+14
| | | | | | | | | | | |
| | | | | | | | | | * | Don't include a signature and only get first paragraphs when scraping when ↵Gravatar Numerlor2019-10-21-10/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | symbol is a module
| | | | | | | | | | * | remove "function" from NO_OVERRIDE_GROUPSGravatar Numerlor2019-10-20-1/+0
| | | | | | | | | | | |
| | | | | | | | | | * | Auto delete messages when docs are not foundGravatar Numerlor2019-10-20-2/+8
| | | | | | | | | | | |
| | | | | | | | | | * | show renamed duplicates in embed footerGravatar Numerlor2019-10-20-8/+13
| | | | | | | | | | | |
| | | | | | | | | | * | add handling for duplicate symbols in docs inventoriesGravatar Numerlor2019-10-20-4/+35
| | | | | | | |_|_|/ / | | | | | | |/| | | |
* | | | | | / | | | | Make it easier for user to search for tagsGravatar Shirayuki Nekomata2019-10-18-9/+61
|/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | #### Closes #231 Applying the algorithm for `Needles and Haystack` to find and match tag in tags, for example: ![Example](https://cdn.discordapp.com/attachments/634243438459486219/634592981915140107/unknown.png) This only applies to searching tag_name with more than 3 in length, and at least 80% of its letters are found, from left to right. There are 3 levels of checking, stop at first found: - Check if exact name ( case insensitive ) O(1) getting from a dictionary Dict[str, Tag] - Check for all tags that has 100% matching via algorithm - Check for all tags that has >= 80% matching If there are more than one hit, it will be shown as suggestions: ![Suggestions](https://cdn.discordapp.com/attachments/634243438459486219/634595369531211778/unknown.png) In order to avoid api being called multiple times, I've implemented a cache to only refresh itself when the is a gap of more than 5 minutes from the last api call to get all tags. Editing / Adding / Deleting tags will also modify the cache directly. ##### What about other solution like fuzzywuzzy? fuzzywuzzy was considered for using, but from testing, it was giving much lower scores than expected: Code used to test: ```py from fuzzywuzzy import fuzz def _fuzzy_search(search: str, target: str) -> bool: found = 0 index = 0 _search = search.lower().replace(' ', '') _target = target.lower().replace(' ', '') for letter in _search: index = _target.find(letter, index) if index == -1: break found += index > 0 # return found / len(_search) * 100 return ( found / len(_search) * 100, fuzz.ratio(search, target), fuzz.partial_ratio(search, target) ) tests = ( 'this-is-gonna-be-fun', 'this-too-will-be-fun' ) for test in tests: print(test, '->', _fuzzy_search('this too fun', test)) ``` Result from test: ```py this-is-gonna-be-fun -> (30.0, 50, 50) this-too-will-be-fun -> (90.0, 62, 58) ```
* | | | | | | | | | Fix rule alias. (#537)Gravatar scragly2019-10-16-6/+6
|\ \ \ \ \ \ \ \ \ \ | |_|_|_|/ / / / / / |/| | | | | | | | | Fix rule alias.
| * | | | | | | | | Merge branch 'master' into rule-numGravatar scragly2019-10-16-45/+61
| |\ \ \ \ \ \ \ \ \ | |/ / / / / / / / / |/| | | | | | | | |
* | | | | | | | | | Merge pull request #511 from python-discord/off-topic-checkGravatar Kieran Siek2019-10-15-45/+61
|\ \ \ \ \ \ \ \ \ \ | |_|_|_|/ / / / / / |/| | | | | | | | | Prevent too similar off-topic channel names
| * | | | | | | | | Merge branch 'master' into off-topic-checkGravatar Kieran Siek2019-10-15-47/+230
| |\ \ \ \ \ \ \ \ \ | |/ / / / / / / / / |/| | | | | | | | |
| * | | | | | | | | Merge branch 'master' into off-topic-checkGravatar kosayoda2019-10-15-1882/+2058
| |\ \ \ \ \ \ \ \ \ | | | |_|_|/ / / / / | | |/| | | | | | |
| * | | | | | | | | Utilize __str__ of discord.Member in logging and outputGravatar kosayoda2019-10-12-47/+33
| | | | | | | | | |
| * | | | | | | | | Add !otn forceadd command.Gravatar kosayoda2019-10-11-0/+8
| | | | | | | | | |
| * | | | | | | | | Add check to !otn add to prevent too similar names.Gravatar kosayoda2019-10-11-2/+24
| | | | | | | | | |
| | | * | | | | | | Fix rule alias.Gravatar kosayoda2019-10-15-6/+6
| |_|/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow rule alias to take rule numbers, passes them to the `site rules` command. Rules are now 1-indexed to conform with the representation on the website.
* | | | | | | | | Create the !mention command. (#493)Gravatar scragly2019-10-15-3/+58
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create the !mention command. Co-authored-by: null <[email protected]>
| * \ \ \ \ \ \ \ \ Merge branch 'master' into masterGravatar scragly2019-10-15-1948/+1951
| |\ \ \ \ \ \ \ \ \ | |/ / / / / / / / / |/| | | | | | | | |
* | | | | | | | | | Merge pull request #503 from avayert/masterGravatar Johannes Christ2019-10-14-4/+130
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | Add raw command
| * | | | | | | | | | Implement a bypassable cooldown decoratorGravatar Ava2019-10-14-3/+50
| | | | | | | | | | |
| * | | | | | | | | | Small code review fixesGravatar Ava2019-10-11-3/+2
| | | | | | | | | | |
| * | | | | | | | | | Fix linting errorsGravatar Ava2019-10-08-7/+8
| | | | | | | | | | |
| * | | | | | | | | | Fix wrong importGravatar Ava2019-10-08-2/+1
| | | | | | | | | | |
| * | | | | | | | | | Add raw commandGravatar Ava2019-10-08-3/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes #334
* | | | | | | | | | | Merge pull request #378 from larswijn/djangoGravatar Johannes Christ2019-10-14-44/+46
|\ \ \ \ \ \ \ \ \ \ \ | |_|_|_|/ / / / / / / |/| | | | | | | | | | Change pep command to use `.txt` by default
| * | | | | | | | | | Update utils.pyGravatar larswijn2019-10-13-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch around trying order (txt first, then rst)
| * | | | | | | | | | Completely re-submit fileGravatar larswijn2019-07-01-44/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to fix the write history of the file
* | | | | | | | | | | Deployment triggerGravatar Joseph Banks2019-10-12-0/+0
| | | | | | | | | | |
* | | | | | | | | | | Merge pull request #495 from kraktus/modif_2Gravatar Mark2019-10-11-1/+40
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Add Periodic Ping to Checkpoint
| * \ \ \ \ \ \ \ \ \ \ Merge branch 'master' into modif_2Gravatar Leon Sandøy2019-10-12-1/+1
| |\ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / |/| | | | | | | | | | |
* | | | | | | | | | | | Merge pull request #518 from python-discord/bump-site-postgres-to-12Gravatar Mark2019-10-11-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | Bump the site PostgreSQL version to 12.
| * \ \ \ \ \ \ \ \ \ \ \ Merge branch 'master' into bump-site-postgres-to-12Gravatar Mark2019-10-11-5/+80
| |\ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / |/| | | | | | | | | | | |
| * | | | | | | | | | | | Bump the site PostgreSQL version to 12.Gravatar Johannes Christ2019-10-12-1/+1
| | |_|_|_|_|/ / / / / / | |/| | | | | | | | | |
| | * | | | | | | | | | Merge branch 'master' into modif_2Gravatar Leon Sandøy2019-10-12-5/+80
| | |\ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / / / |/| | | | | | | | | | |
* | | | | | | | | | | | Merge pull request #421 from python-discord/bot-utils-time-testsGravatar Mark2019-10-11-5/+80
|\ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / |/| | | | | | | | | | | Add tests for `bot.utils.time`.
| * | | | | | | | | | | Raise `ValueError` on negative `max_units`.Gravatar Johannes Christ2019-10-12-3/+9
| | | | | | | | | | | |
| * | | | | | | | | | | Merge branch 'master' into bot-utils-time-testsGravatar Johannes Christ2019-10-12-353/+352
| |\ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / |/| | | | | | | | | | |
| * | | | | | | | | | | Add typehints.Gravatar Johannes Christ2019-10-11-3/+2
| | | | | | | | | | | |
| * | | | | | | | | | | Merge branch 'master' into bot-utils-time-testsGravatar Johannes Christ2019-10-11-3706/+3119
| |\ \ \ \ \ \ \ \ \ \ \ | | | |_|_|_|_|/ / / / / | | |/| | | | | | | | |
| * | | | | | | | | | | Implement test cases suggested by @MarkKoz.Gravatar Johannes Christ2019-10-11-0/+11
| | | | | | | | | | | |
| * | | | | | | | | | | Add tests for `bot.utils.time`.Gravatar Johannes Christ2019-09-20-4/+58
| | | | | | | | | | | |
| | | * | | | | | | | | Merge remote-tracking branch 'origin/master' into modif_2Gravatar MarkKoz2019-10-11-1896/+1912
| | | |\ \ \ \ \ \ \ \ \ | |_|_|/ / / / / / / / / |/| | | | | | | | | | |
* | | | | | | | | | | | Merge pull request #506 from python-discord/token-regex-tweakGravatar Leon Sandøy2019-10-11-5/+5
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | Expand token detection regex character exclusion
| * \ \ \ \ \ \ \ \ \ \ \ Merge branch 'master' into token-regex-tweakGravatar Leon Sandøy2019-10-11-349/+353
| |\ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / |/| | | | | | | | | | | |
* | | | | | | | | | | | | Merge pull request #509 from python-discord/moderation-tweaksGravatar Leon Sandøy2019-10-11-26/+71
|\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moderation tweaks