Skip to content

Commit

Permalink
fix spelling typos in bot/ python files
Browse files Browse the repository at this point in the history
  • Loading branch information
hedyhli committed Oct 1, 2020
1 parent 403bb49 commit f791bc3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bot/exts/help_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ async def move_to_bottom_position(self, channel: discord.TextChannel, category_i
If `options` are provided, the channel will be edited after the move is completed. This is the
same order of operations that `discord.TextChannel.edit` uses. For information on available
options, see the documention on `discord.TextChannel.edit`. While possible, position-related
options, see the documentation on `discord.TextChannel.edit`. While possible, position-related
options should be avoided, as it may interfere with the category move we perform.
"""
# Get a fresh copy of the category from the bot to avoid the cache mismatch issue we had.
Expand Down
2 changes: 1 addition & 1 deletion bot/exts/info/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ async def send_group_help(self, group: Group) -> None:

async def send_cog_help(self, cog: Cog) -> None:
"""Send help for a cog."""
# sort commands by name, and remove any the user cant run or are hidden.
# sort commands by name, and remove any the user can't run or are hidden.
commands_ = await self.filter_commands(cog.get_commands(), sort=True)

embed = Embed()
Expand Down
2 changes: 1 addition & 1 deletion bot/exts/info/information.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ async def server_info(self, ctx: Context) -> None:
staff_channel_count = self.get_staff_channel_count(ctx.guild)

# Because channel_counts lacks leading whitespace, it breaks the dedent if it's inserted directly by the
# f-string. While this is correctly formated by Discord, it makes unit testing difficult. To keep the formatting
# f-string. While this is correctly formatted by Discord, it makes unit testing difficult. To keep the formatting
# without joining a tuple of strings we can use a Template string to insert the already-formatted channel_counts
# after the dedent is made.
embed.description = Template(
Expand Down
2 changes: 1 addition & 1 deletion bot/exts/utils/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def codeblock_stripping(self, msg: str, bad_ticks: bool) -> Optional[Tuple[Tuple
else:
content = "".join(content[1:])

# Strip it again to remove any leading whitespace. This is neccessary
# Strip it again to remove any leading whitespace. This is necessary
# if the first line of the message looked like ```python <code>
old = content.strip()

Expand Down

0 comments on commit f791bc3

Please sign in to comment.