diff options
author | 2019-10-07 10:30:50 -0700 | |
---|---|---|
committer | 2019-10-07 10:30:50 -0700 | |
commit | da7b23cddc22a27c5b1091bbf25a6ae714b07a8c (patch) | |
tree | 48f45feb0c8242bf56e1dec3a8e74220a7aded0a | |
parent | Support wildcards and multiple extensions for load and unload commands (diff) |
Escape asterisks in extensions docstrings
-rw-r--r-- | bot/cogs/extensions.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/bot/cogs/extensions.py b/bot/cogs/extensions.py index 5f9b4aef4..3c59ad8c2 100644 --- a/bot/cogs/extensions.py +++ b/bot/cogs/extensions.py @@ -71,8 +71,8 @@ class Extensions(commands.Cog): """ Load extensions given their fully qualified or unqualified names. - If '*' or '**' is given as the name, all unloaded extensions will be loaded. - """ + If '\*' or '\*\*' is given as the name, all unloaded extensions will be loaded. + """ # noqa: W605 if "*" in extensions or "**" in extensions: extensions = set(EXTENSIONS) - set(self.bot.extensions.keys()) @@ -84,8 +84,8 @@ class Extensions(commands.Cog): """ Unload currently loaded extensions given their fully qualified or unqualified names. - If '*' or '**' is given as the name, all loaded extensions will be unloaded. - """ + If '\*' or '\*\*' is given as the name, all loaded extensions will be unloaded. + """ # noqa: W605 blacklisted = "\n".join(UNLOAD_BLACKLIST & set(extensions)) if blacklisted: @@ -105,9 +105,9 @@ class Extensions(commands.Cog): If an extension fails to be reloaded, it will be rolled-back to the prior working state. - If '*' is given as the name, all currently loaded extensions will be reloaded. - If '**' is given as the name, all extensions, including unloaded ones, will be reloaded. - """ + If '\*' is given as the name, all currently loaded extensions will be reloaded. + If '\*\*' is given as the name, all extensions, including unloaded ones, will be reloaded. + """ # noqa: W605 if not extensions: await ctx.invoke(self.bot.get_command("help"), "extensions reload") return |