aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2021-09-06Remove TagNameConverterGravatar Numerlor-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
2021-09-06simplify fuzzy suggestion funcGravatar Numerlor-14/+9
Co-authored-by: Bluenix <[email protected]>
2021-08-29Simplify group_score definitionGravatar Numerlor-12/+7
Co-authored-by: Bluenix <[email protected]>
2021-08-29Fix punctuationGravatar Numerlor-2/+2
Co-authored-by: Bluenix <[email protected]>
2021-08-28simplify assignment and add comment explaining its purposeGravatar Numerlor-2/+2
2021-08-28Remove unnecessary line in helpGravatar Numerlor-1/+0
Co-authored-by: Bluenix <[email protected]>
2021-08-23Fix tag fuzzy matching when searching against a longer targetGravatar Numerlor-3/+7
2021-08-23remove redundant index assignmentsGravatar Numerlor-2/+2
Co-authored-by: Bluenix <[email protected]>
2021-08-15Move definition of loop vars next to loopGravatar Numerlor-1/+1
2021-08-15refactor fuzzy_search to use conventional iterationGravatar Numerlor-9/+7
Co-authored-by: Bluenix <[email protected]>
2021-08-15Fix incorrect annotationGravatar Numerlor-1/+1
Co-authored-by: Bluenix <[email protected]>
2021-08-15Reword `tag get` helpGravatar Numerlor-1/+1
2021-08-14use an empty string as the initial group valueGravatar Numerlor-1/+1
2021-08-12Use new Tags cog structure in source.pyGravatar Numerlor-8/+11
2021-08-12make the tags attribute publicGravatar Numerlor-10/+10
the tags need to be accessed by the source cog
2021-08-12Store paths on Tags instead of only accepting the file contentsGravatar Numerlor-3/+4
2021-08-02Make return condition clearerGravatar Numerlor-8/+9
2021-08-02Simplify condition by assigning group and name before itGravatar Numerlor-5/+4
2021-08-02Use opposite comparison operator instead of negating conditionGravatar Numerlor-1/+1
2021-08-02Move tag identifier creation method to a TagIdentifier constructorGravatar Numerlor-10/+10
2021-08-02Change if to elif to indicate it's exclusive with the above ifGravatar Numerlor-1/+1
2021-08-02Use an and instead of nested ifsGravatar Numerlor-4/+3
2021-08-02Move `current_group` assignment and use it instead of `identifier.group`Gravatar Numerlor-3/+3
2021-08-02Use "message" in docstring for consistencyGravatar Numerlor-1/+1
2021-08-02Move assignment to its own line instead of using an assignment exprGravatar Numerlor-1/+2
2021-08-02Do not pass in embed as a kwargGravatar Numerlor-1/+1
Using a doesn't add anything to the readability of the line and makes it inconsistent with other uses
2021-08-02Remove embed title bolding for group listingGravatar Numerlor-1/+1
The other embeds don't have a bold title
2021-08-02Use \N escapeGravatar Numerlor-1/+4
2021-08-02Improve help output of get commandGravatar Numerlor-2/+6
2021-08-02Add missing "the"Gravatar Numerlor-1/+1
Co-authored-by: Bluenix <[email protected]>
2021-08-02Correct the documented return objectsGravatar Numerlor-1/+1
2021-07-07Fix leading space in str of identifiers without a groupGravatar Numerlor-1/+4
This issue doesn't show on discord as whitespace is collapsed in embeds, but could be seen in logs
2021-07-06Emit tag if only one fuzzy match is foundGravatar Numerlor-7/+15
This feature was accidentally removed when restructuring the code
2021-07-06Do not add suggestion for tags with short names if a group is specifiedGravatar Numerlor-6/+14
2021-07-06Update outdated docstringGravatar Numerlor-1/+1
The saving functionality has not been present on the bot for a while
2021-07-06Fix testsGravatar Numerlor-10/+18
Unnecessary invoked with mocks were removed and some more checks added for the new behaviour
2021-07-06Add leading ยป when listing tag suggestionsGravatar Numerlor-1/+1
2021-07-06Remove unnecessary typehintGravatar Numerlor-2/+2
2021-07-06Update strings to use double quotesGravatar Numerlor-9/+9
2021-07-06remove unused thresholds parameterGravatar Numerlor-8/+2
2021-07-06Move tag search to new designGravatar Numerlor-13/+20
2021-07-06Add option to list all tags in a groupGravatar Numerlor-2/+19
2021-07-06Move tag listing to new design and move it outside of tag display methodGravatar Numerlor-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
2021-07-01Move cooldown handling to the Tag classGravatar Numerlor-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.
2021-07-01Base functionality of tag fetching with groups and in file metadataGravatar Numerlor-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
2021-06-30Remove the pixels token detectorGravatar Chris Lovering-108/+0
2021-06-29Ensure mods cannot be watchedGravatar Chris Lovering-0/+5
This meant admins could also be watched, meaning their messages in ancy channel would be relayed to the BB channel.
2021-06-27upgrade pytest-xdistGravatar Thomas Grainger-6/+6
2021-06-27move cov config to tomlGravatar Thomas Grainger-5/+5
2021-06-27Add alias for voice_verify commandGravatar wookie184-1/+1
Added voice-verify alias as the channel and tag are hyphenated so it may be confusing as it is currently.