docs: fix typos (#5989)

Co-authored-by: Flame442 <34169552+Flame442@users.noreply.github.com>
This commit is contained in:
Lioness100
2023-02-13 21:36:09 -05:00
committed by GitHub
parent 9811e4e871
commit a89a27cadf
28 changed files with 43 additions and 43 deletions

View File

@@ -339,7 +339,7 @@ class Alias(commands.Cog):
try:
if await self._aliases.edit_alias(ctx, alias_name, command):
await ctx.send(
_("The alias with the trigger `{name}` has been edited sucessfully.").format(
_("The alias with the trigger `{name}` has been edited successfully.").format(
name=alias_name
)
)
@@ -372,7 +372,7 @@ class Alias(commands.Cog):
try:
if await self._aliases.edit_alias(ctx, alias_name, command, global_=True):
await ctx.send(
_("The alias with the trigger `{name}` has been edited sucessfully.").format(
_("The alias with the trigger `{name}` has been edited successfully.").format(
name=alias_name
)
)

View File

@@ -31,7 +31,7 @@ from ..cog_utils import CompositeMetaClass
log = getLogger("red.cogs.Audio.cog.Utilities.playlists")
_ = Translator("Audio", Path(__file__))
CURRATED_DATA = (
CURATED_DATA = (
"https://gist.githubusercontent.com/aikaterna/4b5de6c420cd6f12b83cb895ca2de16a/raw/json"
)
@@ -262,9 +262,9 @@ class PlaylistUtilities(MixinMeta, metaclass=CompositeMetaClass):
colour=await context.embed_colour(),
)
msg = await context.send(embed=embed)
avaliable_emojis = ReactionPredicate.NUMBER_EMOJIS[1:]
avaliable_emojis.append("🔟")
emojis = avaliable_emojis[: len(correct_scope_matches)]
available_emojis = ReactionPredicate.NUMBER_EMOJIS[1:]
available_emojis.append("🔟")
emojis = available_emojis[: len(correct_scope_matches)]
emojis.append("\N{CROSS MARK}")
start_adding_reactions(msg, emojis)
pred = ReactionPredicate.with_emojis(emojis, msg, user=context.author)
@@ -686,7 +686,7 @@ class PlaylistUtilities(MixinMeta, metaclass=CompositeMetaClass):
async def _get_bundled_playlist_tracks(self):
async with aiohttp.ClientSession(json_serialize=json.dumps) as session:
async with session.get(
CURRATED_DATA + f"?timestamp={int(time.time())}",
CURATED_DATA + f"?timestamp={int(time.time())}",
headers={"content-type": "application/json"},
) as response:
if response.status != 200:

View File

@@ -76,7 +76,7 @@ class ModInfo(MixinMeta):
if exc.status == 400: # BAD REQUEST
await ctx.send(_("That nickname is invalid."))
else:
await ctx.send(_("An unexpected error has occured."))
await ctx.send(_("An unexpected error has occurred."))
else:
await ctx.send(_("Done."))

View File

@@ -33,7 +33,7 @@ _ = i18n.Translator("Mutes", __file__)
class MuteTime(Converter):
"""
This will parse my defined multi response pattern and provide usable formats
to be used in multiple reponses
to be used in multiple responses
"""
async def convert(

View File

@@ -428,7 +428,7 @@ class Mutes(VoiceMutes, commands.Cog, metaclass=CompositeMetaClass):
for result in results:
if not result:
continue
_mmeber, channel, reason = result
_member, channel, reason = result
unmuted_channels.remove(channel)
modlog_reason = _("Automatic unmute")
@@ -1571,7 +1571,7 @@ class Mutes(VoiceMutes, commands.Cog, metaclass=CompositeMetaClass):
"user": user,
}
# TODO: This typing is ugly and should probably be an object on its own
# along with this entire method and some othe refactorization
# along with this entire method and some other refactorization
# v1.0.0 is meant to look ugly right :')
if permissions.administrator:
ret["reason"] = _(MUTE_UNMUTE_ISSUES["is_admin"])

View File

@@ -34,7 +34,7 @@ class Reports(commands.Cog):
default_report = {"report": {}}
# This can be made configureable later if it
# This can be made configurable later if it
# becomes an issue.
# Intervals should be a list of tuples in the form
# (period: timedelta, max_frequency: int)

View File

@@ -944,7 +944,7 @@ class Streams(commands.Cog):
await role.edit(mentionable=False)
await self.save_streams()
except Exception as e:
log.error("An error has occured with Streams. Please report it.", exc_info=e)
log.error("An error has occurred with Streams. Please report it.", exc_info=e)
if to_remove:
for stream in to_remove:

View File

@@ -198,7 +198,7 @@ class YoutubeStream(Stream):
log.debug(f"livestreams for {self.name}: {self.livestreams}")
log.debug(f"not_livestreams for {self.name}: {self.not_livestreams}")
# This is technically redundant since we have the
# info from the RSS ... but incase you don't wanna deal with fully rewritting the
# info from the RSS ... but incase you don't wanna deal with fully rewriting the
# code for this part, as this is only a 2 quota query.
if self.livestreams:
params = {
@@ -330,7 +330,7 @@ class TwitchStream(Stream):
async def wait_for_rate_limit_reset(self) -> None:
"""Check rate limits in response header and ensure we're following them.
From python-twitch-client and adaptated to asyncio from Trusty-cogs:
From python-twitch-client and adapted to asyncio from Trusty-cogs:
https://github.com/tsifrer/python-twitch-client/blob/master/twitch/helix/base.py
https://github.com/TrustyJAID/Trusty-cogs/blob/master/twitch/twitch_api.py
"""

View File

@@ -154,7 +154,7 @@ class Trivia(commands.Cog):
)
@triviaset.command(name="usespoilers", usage="<true_or_false>")
async def trivaset_use_spoilers(self, ctx: commands.Context, enabled: bool):
async def triviaset_use_spoilers(self, ctx: commands.Context, enabled: bool):
"""Set if bot will display the answers in spoilers.
If enabled, the bot will use spoilers to hide answers.
@@ -167,7 +167,7 @@ class Trivia(commands.Cog):
await ctx.send(_("Alright, I won't use spoilers to hide answers anymore."))
@triviaset.command(name="botplays", usage="<true_or_false>")
async def trivaset_bot_plays(self, ctx: commands.Context, enabled: bool):
async def triviaset_bot_plays(self, ctx: commands.Context, enabled: bool):
"""Set whether or not the bot gains points.
If enabled, the bot will gain a point if no one guesses correctly.
@@ -180,7 +180,7 @@ class Trivia(commands.Cog):
await ctx.send(_("Alright, I won't embarrass you at trivia anymore."))
@triviaset.command(name="revealanswer", usage="<true_or_false>")
async def trivaset_reveal_answer(self, ctx: commands.Context, enabled: bool):
async def triviaset_reveal_answer(self, ctx: commands.Context, enabled: bool):
"""Set whether or not the answer is revealed.
If enabled, the bot will reveal the answer if no one guesses correctly