aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| | | | | | * | | | | | | | refactor fuzzy_search to use conventional iterationGravatar Numerlor2021-08-15-9/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Bluenix <[email protected]>
| | | | | | * | | | | | | | Fix incorrect annotationGravatar Numerlor2021-08-15-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Bluenix <[email protected]>
| | | | | | * | | | | | | | Reword `tag get` helpGravatar Numerlor2021-08-15-1/+1
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | use an empty string as the initial group valueGravatar Numerlor2021-08-14-1/+1
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | Use new Tags cog structure in source.pyGravatar Numerlor2021-08-12-8/+11
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | make the tags attribute publicGravatar Numerlor2021-08-12-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the tags need to be accessed by the source cog
| | | | | | * | | | | | | | Store paths on Tags instead of only accepting the file contentsGravatar Numerlor2021-08-12-3/+4
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | Make return condition clearerGravatar Numerlor2021-08-02-8/+9
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | Simplify condition by assigning group and name before itGravatar Numerlor2021-08-02-5/+4
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | Use opposite comparison operator instead of negating conditionGravatar Numerlor2021-08-02-1/+1
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | Move tag identifier creation method to a TagIdentifier constructorGravatar Numerlor2021-08-02-10/+10
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | Change if to elif to indicate it's exclusive with the above ifGravatar Numerlor2021-08-02-1/+1
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | Use an and instead of nested ifsGravatar Numerlor2021-08-02-4/+3
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | Move `current_group` assignment and use it instead of `identifier.group`Gravatar Numerlor2021-08-02-3/+3
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | Use "message" in docstring for consistencyGravatar Numerlor2021-08-02-1/+1
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | Move assignment to its own line instead of using an assignment exprGravatar Numerlor2021-08-02-1/+2
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | Do not pass in embed as a kwargGravatar Numerlor2021-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 listingGravatar Numerlor2021-08-02-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The other embeds don't have a bold title
| | | | | | * | | | | | | | Use \N escapeGravatar Numerlor2021-08-02-1/+4
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | Improve help output of get commandGravatar Numerlor2021-08-02-2/+6
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | Add missing "the"Gravatar Numerlor2021-08-02-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Bluenix <[email protected]>
| | | | | | * | | | | | | | Correct the documented return objectsGravatar Numerlor2021-08-02-1/+1
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | Fix leading space in str of identifiers without a groupGravatar Numerlor2021-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 foundGravatar Numerlor2021-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 specifiedGravatar Numerlor2021-07-06-6/+14
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | Update outdated docstringGravatar Numerlor2021-07-06-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The saving functionality has not been present on the bot for a while
| | | | | | * | | | | | | | Fix testsGravatar Numerlor2021-07-06-10/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unnecessary invoked with mocks were removed and some more checks added for the new behaviour
| | | | | | * | | | | | | | Add leading ยป when listing tag suggestionsGravatar Numerlor2021-07-06-1/+1
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | Remove unnecessary typehintGravatar Numerlor2021-07-06-2/+2
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | Update strings to use double quotesGravatar Numerlor2021-07-06-9/+9
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | remove unused thresholds parameterGravatar Numerlor2021-07-06-8/+2
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | Move tag search to new designGravatar Numerlor2021-07-06-13/+20
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | Add option to list all tags in a groupGravatar Numerlor2021-07-06-2/+19
| | | | | | | | | | | | | |
| | | | | | * | | | | | | | Move tag listing to new design and move it outside of tag display methodGravatar Numerlor2021-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 classGravatar Numerlor2021-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 metadataGravatar Numerlor2021-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
| | | | | | | | | * | | | | Skip private channels when deleting from allGravatar mbaruh2021-12-06-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When specifying all channels, the command now skips private channels to optimize for speed.
| | | | | | | | | * | | | | Properly check the channel when deleting from cacheGravatar mbaruh2021-12-05-14/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the cache was only used to delete from all channels. I didn't add a channels check when I changed it.
| | | | | | | | | * | | | | Remove now redundant input check.Gravatar mbaruh2021-12-03-4/+0
| | | | | | | | | | | | | |
| | | | | | | | | * | | | | Update _build_predicate to require a limitGravatar mbaruh2021-12-02-10/+8
| | | | | | | | | | | | | |
| | | | | | | | | * | | | | Simplify cache usageGravatar mbaruh2021-12-02-39/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removes the cache usage argument from the clean commands. Cache usage is now an implementation detail. The cache will be used if the age of the oldest message requested for cleaning is younger than the oldest message in the cache. Additionally fixes the logger to the one used in the rest of the bot (caused by a faulty merge).
| | | | | | | | | * | | | | Remove cleaning based on number of messagesGravatar mbaruh2021-12-02-49/+44
| |_|_|_|_|_|_|_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All clean commands now use the clean limit (message, time delta, ISO datetime) instead of `traverse`. Consequently, `clean all` has been removed as `clean until` now effectively fulfills that role.
* | | | | | | | | | | | | Dynamic views for command help embeds (#1939)Gravatar Boris Muratov2021-12-01-51/+141
|/ / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dynamic views for command help embeds Adds views for commands to navigate groups. For subcommands, a button is added to show the parent's help embed. For groups, buttons are added for each subcommand to show their help embeds. The views are not generated when help is invoked in the context of an error.
* | | | | | | | | | | | Merge pull request #1868 from python-discord/subscribe-with-buttonsGravatar ChrisJL2021-12-01-88/+248
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | Subscribe with buttons
| * \ \ \ \ \ \ \ \ \ \ \ Merge branch 'main' into subscribe-with-buttonsGravatar ChrisJL2021-12-01-26/+53
| |\ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / |/| | | | | | | | | | | |
* | | | | | | | | | | | | Merge pull request #1928 from python-discord/kill-sir-threadevereGravatar Matteo Bertucci2021-12-01-26/+53
|\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Manage nomination threads in bot
| * | | | | | | | | | | | | Remove redundant Union in a type hintGravatar Chris Lovering2021-12-01-1/+1
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | Use presence of a nominee as check for pending reviewsGravatar Chris Lovering2021-12-01-1/+1
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | Always return a review string for a given nominationGravatar Chris Lovering2021-12-01-8/+5
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | Fix emoji reaction error in reviewerGravatar Chris Lovering2021-12-01-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using a :eyes: style emoji string in a ctx.add_reaciton call will error. Discord expects either a unicode emoji, or a custom emoji.