Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Return 0 if search string has no a-z characters | 2021-09-06 | -0/+3 | |
| | ||||
* | Remove TagNameConverter | 2021-09-06 | -110/+13 | |
| | | | | | | | The converter was now only used to restrict requested names which can be handled by not matching a tag in the cog and not displaying output, this allows us to be a bit more generous with tag names during the command fallback when a name with invalid symbols is parsed after a group | |||
* | simplify fuzzy suggestion func | 2021-09-06 | -14/+9 | |
| | | | | Co-authored-by: Bluenix <[email protected]> | |||
* | Simplify group_score definition | 2021-08-29 | -12/+7 | |
| | | | | Co-authored-by: Bluenix <[email protected]> | |||
* | Fix punctuation | 2021-08-29 | -2/+2 | |
| | | | Co-authored-by: Bluenix <[email protected]> | |||
* | simplify assignment and add comment explaining its purpose | 2021-08-28 | -2/+2 | |
| | ||||
* | Remove unnecessary line in help | 2021-08-28 | -1/+0 | |
| | | | | Co-authored-by: Bluenix <[email protected]> | |||
* | Fix tag fuzzy matching when searching against a longer target | 2021-08-23 | -3/+7 | |
| | ||||
* | remove redundant index assignments | 2021-08-23 | -2/+2 | |
| | | | | Co-authored-by: Bluenix <[email protected]> | |||
* | Move definition of loop vars next to loop | 2021-08-15 | -1/+1 | |
| | ||||
* | refactor fuzzy_search to use conventional iteration | 2021-08-15 | -9/+7 | |
| | | | | Co-authored-by: Bluenix <[email protected]> | |||
* | Fix incorrect annotation | 2021-08-15 | -1/+1 | |
| | | | | Co-authored-by: Bluenix <[email protected]> | |||
* | Reword `tag get` help | 2021-08-15 | -1/+1 | |
| | ||||
* | use an empty string as the initial group value | 2021-08-14 | -1/+1 | |
| | ||||
* | Use new Tags cog structure in source.py | 2021-08-12 | -8/+11 | |
| | ||||
* | make the tags attribute public | 2021-08-12 | -10/+10 | |
| | | | | the tags need to be accessed by the source cog | |||
* | Store paths on Tags instead of only accepting the file contents | 2021-08-12 | -3/+4 | |
| | ||||
* | Make return condition clearer | 2021-08-02 | -8/+9 | |
| | ||||
* | Simplify condition by assigning group and name before it | 2021-08-02 | -5/+4 | |
| | ||||
* | Use opposite comparison operator instead of negating condition | 2021-08-02 | -1/+1 | |
| | ||||
* | Move tag identifier creation method to a TagIdentifier constructor | 2021-08-02 | -10/+10 | |
| | ||||
* | Change if to elif to indicate it's exclusive with the above if | 2021-08-02 | -1/+1 | |
| | ||||
* | Use an and instead of nested ifs | 2021-08-02 | -4/+3 | |
| | ||||
* | Move `current_group` assignment and use it instead of `identifier.group` | 2021-08-02 | -3/+3 | |
| | ||||
* | Use "message" in docstring for consistency | 2021-08-02 | -1/+1 | |
| | ||||
* | Move assignment to its own line instead of using an assignment expr | 2021-08-02 | -1/+2 | |
| | ||||
* | Do not pass in embed as a kwarg | 2021-08-02 | -1/+1 | |
| | | | | | Using a doesn't add anything to the readability of the line and makes it inconsistent with other uses | |||
* | Remove embed title bolding for group listing | 2021-08-02 | -1/+1 | |
| | | | | The other embeds don't have a bold title | |||
* | Use \N escape | 2021-08-02 | -1/+4 | |
| | ||||
* | Improve help output of get command | 2021-08-02 | -2/+6 | |
| | ||||
* | Add missing "the" | 2021-08-02 | -1/+1 | |
| | | | | Co-authored-by: Bluenix <[email protected]> | |||
* | Correct the documented return objects | 2021-08-02 | -1/+1 | |
| | ||||
* | Fix leading space in str of identifiers without a group | 2021-07-07 | -1/+4 | |
| | | | | | This issue doesn't show on discord as whitespace is collapsed in embeds, but could be seen in logs | |||
* | Emit tag if only one fuzzy match is found | 2021-07-06 | -7/+15 | |
| | | | | This feature was accidentally removed when restructuring the code | |||
* | Do not add suggestion for tags with short names if a group is specified | 2021-07-06 | -6/+14 | |
| | ||||
* | Update outdated docstring | 2021-07-06 | -1/+1 | |
| | | | | The saving functionality has not been present on the bot for a while | |||
* | Fix tests | 2021-07-06 | -10/+18 | |
| | | | | | Unnecessary invoked with mocks were removed and some more checks added for the new behaviour | |||
* | Add leading ยป when listing tag suggestions | 2021-07-06 | -1/+1 | |
| | ||||
* | Remove unnecessary typehint | 2021-07-06 | -2/+2 | |
| | ||||
* | Update strings to use double quotes | 2021-07-06 | -9/+9 | |
| | ||||
* | remove unused thresholds parameter | 2021-07-06 | -8/+2 | |
| | ||||
* | Move tag search to new design | 2021-07-06 | -13/+20 | |
| | ||||
* | Add option to list all tags in a group | 2021-07-06 | -2/+19 | |
| | ||||
* | Move tag listing to new design and move it outside of tag display method | 2021-07-06 | -73/+97 | |
| | | | | | | | The display method was renamed to get_tag_embed and now exclusively handles embed for a tag/suggestions instead of holding the logic of the whole command fixup! Move tag listing to new design and move it outside of tag display method | |||
* | Move cooldown handling to the Tag class | 2021-07-01 | -34/+15 | |
| | | | | | | | | | Instead of the Cog keeping track of cooldowns of all tags, every tag now handles its own cooldowns which are registered with the `set_cooldown_for` method. This change also fixes the bug where cooldowns can only be on cooldown in only one channel at a time, with invokations in other places cancelling cooldowns. | |||
* | Base functionality of tag fetching with groups and in file metadata | 2021-07-01 | -89/+167 | |
| | | | | | | The code was restructured to hold tags and their identifiers in individual classes and some methods moved to function to detach some of the not directly related functionality from the cog class | |||
* | Merge pull request #1661 from python-discord/remove-pixels-token-detection | 2021-06-30 | -108/+0 | |
|\ | | | | | Remove the pixels token detector | |||
| * | Remove the pixels token detector | 2021-06-30 | -108/+0 | |
|/ | ||||
* | Merge pull request #1659 from python-discord/move-cov-config-to-toml | 2021-06-29 | -11/+11 | |
|\ | ||||
| * | Merge branch 'main' into move-cov-config-to-toml | 2021-06-29 | -0/+5 | |
| |\ | |/ |/| |