[V3/Misc] Spelling, Grammar, and doc string fixes. (#1747)

* Update streams.py

* Update filter.py

* Update permissions.py

* Update customcom.py

* Update image.py

* Update trivia.py

* Update warnings.py
This commit is contained in:
Redjumpman
2018-06-01 04:20:12 -05:00
committed by Tobotimus
parent 6d7a900bbb
commit 1fd5dffdc7
7 changed files with 84 additions and 83 deletions

View File

@@ -42,7 +42,7 @@ class CommandObj:
intro = _(
"Welcome to the interactive random {} maker!\n"
"Every message you send will be added as one of the random "
"response to choose from once this {} is "
"responses to choose from once this {} is "
"triggered. To exit this interactive menu, type `{}`"
).format("customcommand", "customcommand", "exit()")
await ctx.send(intro)
@@ -74,7 +74,7 @@ class CommandObj:
return ccinfo["response"]
async def create(self, ctx: commands.Context, command: str, response):
"""Create a customcommand"""
"""Create a custom command"""
# Check if this command is already registered as a customcommand
if await self.db(ctx.guild).commands.get_raw(command, default=None):
raise AlreadyExists()
@@ -131,6 +131,7 @@ class CommandObj:
@cog_i18n(_)
class CustomCommands:
"""Custom commands
Creates commands used to display text"""
def __init__(self, bot):
@@ -173,6 +174,7 @@ class CustomCommands:
async def cc_add_random(self, ctx: commands.Context, command: str):
"""
Create a CC where it will randomly choose a response!
Note: This is interactive
"""
channel = ctx.channel
@@ -184,7 +186,7 @@ class CustomCommands:
await ctx.send(_("Custom command successfully added."))
except AlreadyExists:
await ctx.send(
_("This command already exists. Use " "`{}` to edit it.").format(
_("This command already exists. Use `{}` to edit it.").format(
"{}customcom edit".format(ctx.prefix)
)
)
@@ -195,6 +197,7 @@ class CustomCommands:
@checks.mod_or_permissions(administrator=True)
async def cc_add_simple(self, ctx, command: str, *, text):
"""Adds a simple custom command
Example:
[p]customcom add simple yourcommand Text you want
"""
@@ -217,6 +220,7 @@ class CustomCommands:
@checks.mod_or_permissions(administrator=True)
async def cc_edit(self, ctx, command: str, *, text=None):
"""Edits a custom command
Example:
[p]customcom edit yourcommand Text you want
"""