Skip to content

Commit

Permalink
Fix @local/name doc
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbndr committed May 5, 2024
1 parent f392cec commit 9f814f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cogs/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ async def parse_user_input(self, ctx, plugin_name, check_version=False):
embed = discord.Embed(
description="Invalid plugin name, double check the plugin name "
"or use one of the following formats: "
"username/repo/plugin-name, username/repo/plugin-name@branch, local/plugin-name.",
"username/repo/plugin-name, username/repo/plugin-name@branch, @local/plugin-name.",
color=self.bot.error_color,
)
await ctx.send(embed=embed)
Expand All @@ -351,7 +351,7 @@ async def plugins_add(self, ctx, *, plugin_name: str):
`plugin_name` can be the name of the plugin found in `{prefix}plugin registry`,
or a direct reference to a GitHub hosted plugin (in the format `user/repo/name[@branch]`)
or `local/name` for local plugins.
or `@local/name` for local plugins.
"""

plugin = await self.parse_user_input(ctx, plugin_name, check_version=True)
Expand Down Expand Up @@ -435,7 +435,7 @@ async def plugins_remove(self, ctx, *, plugin_name: str):
Remove an installed plugin of the bot.
`plugin_name` can be the name of the plugin found in `{prefix}plugin registry`, or a direct reference
to a GitHub hosted plugin (in the format `user/repo/name[@branch]`) or `local/name` for local plugins.
to a GitHub hosted plugin (in the format `user/repo/name[@branch]`) or `@local/name` for local plugins.
"""
plugin = await self.parse_user_input(ctx, plugin_name)
if plugin is None:
Expand Down Expand Up @@ -515,7 +515,7 @@ async def plugins_update(self, ctx, *, plugin_name: str = None):
Update a plugin for the bot.
`plugin_name` can be the name of the plugin found in `{prefix}plugin registry`, or a direct reference
to a GitHub hosted plugin (in the format `user/repo/name[@branch]`) or `local/name` for local plugins.
to a GitHub hosted plugin (in the format `user/repo/name[@branch]`) or `@local/name` for local plugins.
To update all plugins, do `{prefix}plugins update`.
"""
Expand Down

0 comments on commit 9f814f9

Please sign in to comment.