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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
28 changed files with 43 additions and 43 deletions

View File

@ -68,7 +68,7 @@ be replaced by the first argument of your alias:
# this alias will execute the following command:
[p]ban Slime#3160 7 Spam bot.
For a more detailed explaination, read :ref:`this <alias-command-alias-add>`.
For a more detailed explanation, read :ref:`this <alias-command-alias-add>`.
.. _alias-commands:

View File

@ -13,7 +13,7 @@ find detailed docs about usage and commands.
included in the cogs paths and it cannot be unloaded. It contains needed
commands for cog management.
.. _cogmanaerui-usage:
.. _cogmanagerui-usage:
-----
Usage
@ -243,7 +243,7 @@ Shows the install path, or sets a new one.
If you want to set a new path, the same rules as for
:ref:`addpath <cogmanagerui-command-addpath>` apply
.. warning:: If you edit the install path, the cogs won't be transfered.
.. warning:: If you edit the install path, the cogs won't be transferred.
**Arguments**

View File

@ -1274,7 +1274,7 @@ embedset command server
**Description**
Sets a commmand's embed setting for the current server.
Sets a command's embed setting for the current server.
If set, this is used instead of the server default to determine whether or not to use embeds.

View File

@ -128,7 +128,7 @@ Notice a few things in the above examples:
self.config.<insert scope here, or nothing if global>.variable_name.set(new_value)
It is also possible to use :code:`async with` syntax to get and set config
values. When entering the statement, the config value is retreived, and on exit,
values. When entering the statement, the config value is retrieved, and on exit,
it is saved. This puts a safeguard on any code within the :code:`async with`
block such that if it breaks from the block in any way (whether it be from
:code:`return`, :code:`break`, :code:`continue` or an exception), the value will
@ -262,7 +262,7 @@ Now let's see an example that uses multiple identifiers:
from redbot.core import Config, commands, checks
class ChannelAccesss(commands.Cog):
class ChannelAccess(commands.Cog):
def __init__(self):
self.config = Config.get_conf(self, identifier=1234567890)
default_access = {

View File

@ -20,7 +20,7 @@ window like this:
.. image:: .resources/red-console.png
.. _gettings-started-invite:
.. _getting-started-invite:
-------------------------
Invite Red to your server

View File

@ -35,7 +35,7 @@ Installing the pre-requirements
We recommend installing pyenv as a method of installing non-native versions of Python on
Raspberry Pi OS. This guide will tell you how. First, run the following commands:
.. cmake is necessary to be able to successfuly build rapidfuzz.
.. cmake is necessary to be able to successfully build rapidfuzz.
.. prompt:: bash

View File

@ -52,7 +52,7 @@ Manually installing dependencies
.. attention:: There are additional configuration steps required which are
not documented for installing dependencies manually.
These dependencies are only listed seperately here for
These dependencies are only listed separately here for
reference purposes.
* `MSVC Build tools <https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2019>`_

View File

@ -1,5 +1,5 @@
.. This file will be run at the beginning of all files.
You can add the subsitutions you need.
You can add the substitutions you need.
.. this is a .txt so sphinx doesn't error because it's
missing in the index

View File

@ -334,7 +334,7 @@ def _update_logger_class():
def _early_init():
# This function replaces logger so we preferrably (though not necessarily) want that to happen
# This function replaces logger so we preferably (though not necessarily) want that to happen
# before importing anything that calls `logging.getLogger()`, i.e. `asyncio`.
_update_logger_class()
_update_event_loop_policy()

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

View File

@ -143,7 +143,7 @@ class DetailedGlobalCallOnceChecksMixin(IssueDiagnoserBase):
# While the following 2 checks could show even more precise error message,
# it would require a usage of private attribute rather than the public API
# which increases maintanance burden for not that big of benefit.
# which increases maintenance burden for not that big of benefit.
async def _check_ignored_issues(self) -> CheckResult:
label = _("Check if the channel and the server aren't set to be ignored")
if await self.bot.ignored_channel_or_guild(self.message):
@ -816,7 +816,7 @@ class RootDiagnosersMixin(
async def _check_global_call_once_checks_issues(self) -> CheckResult:
label = _("Global 'call once' checks")
# To avoid running core's global checks twice, we just run them all regularly
# and if it turns out that invokation would end here, we go back and check each of
# and if it turns out that invocation would end here, we go back and check each of
# core's global check individually to give more precise error message.
try:
can_run = await self.bot.can_run(self.ctx, call_once=True)

View File

@ -700,7 +700,7 @@ class Red(
If given a member, this will additionally check guild lists
If omiting a user or member, you must provide a value for ``who_id``
If omitting a user or member, you must provide a value for ``who_id``
You may also provide a value for ``guild`` in this case

View File

@ -510,7 +510,7 @@ class RedHelpFormatter(HelpFormatterABC):
offset += len(embed_dict["embed"]["title"])
# In order to only change the size of embeds when necessary for this rather
# than change the existing behavior for people uneffected by this
# than change the existing behavior for people unaffected by this
# we're only modifying the page char limit should they be impacted.
# We could consider changing this to always just subtract the offset,
# But based on when this is being handled (very end of 3.2 release)
@ -519,7 +519,7 @@ class RedHelpFormatter(HelpFormatterABC):
# This is still necessary with the max interaction above
# While we could subtract 100% of the time the offset from page_char_limit
# the intent here is to shorten again
# *only* when necessary, by the exact neccessary amount
# *only* when necessary, by the exact necessary amount
# To retain a visual match with prior behavior.
page_char_limit = 5500 - offset
elif page_char_limit < 250:

View File

@ -1320,7 +1320,7 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):
self, ctx: commands.GuildContext, command: CommandConverter, enabled: bool = None
):
"""
Sets a commmand's embed setting for the current server.
Sets a command's embed setting for the current server.
If set, this is used instead of the server default to determine whether or not to use embeds.
@ -3692,7 +3692,7 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):
if msg is not None:
await self.bot._config.invoke_error_msg.set(msg)
content = _("Succesfully updated the error message.")
content = _("Successfully updated the error message.")
else:
await self.bot._config.invoke_error_msg.clear()
content = _("Successfully reset the error message back to the default one.")

View File

@ -174,7 +174,7 @@ class RPCMixin:
def unregister_rpc_handler(self, method):
"""
Unregisters an RPC method handler.
Deregisters an RPC method handler.
This will be called automatically for you on cog unload and will pass silently if the
method is not previously registered.

View File

@ -14,7 +14,7 @@ from .utils import AsyncIter
class PrefixManager:
def __init__(self, config: Config, cli_flags: Namespace):
self._config: Config = config
self._global_prefix_overide: Optional[List[str]] = (
self._global_prefix_override: Optional[List[str]] = (
sorted(cli_flags.prefix, reverse=True) or None
)
self._cached: Dict[Optional[int], List[str]] = {}
@ -32,7 +32,7 @@ class PrefixManager:
if not ret:
ret = await self.get_prefixes(None)
else:
ret = self._global_prefix_overide or (await self._config.prefix())
ret = self._global_prefix_override or (await self._config.prefix())
self._cached[gid] = ret.copy()

View File

@ -179,7 +179,7 @@ class Tunnel(metaclass=TunnelMeta):
async def close_because_disabled(self, close_message: str):
"""
Sends a mesage to both ends of the tunnel that the tunnel is now closed.
Sends a message to both ends of the tunnel that the tunnel is now closed.
Parameters
----------

View File

@ -352,7 +352,7 @@ class SetApiModal(discord.ui.Modal):
async def on_submit(self, interaction: discord.Interaction):
if not await interaction.client.is_owner(
interaction.user
): # Prevent non-bot owners from somehow aquiring and saving the modal.
): # Prevent non-bot owners from somehow acquiring and saving the modal.
return await interaction.response.send_message(
_("This modal is for bot owners only. Whoops!"), ephemeral=True
)

View File

@ -657,7 +657,7 @@ class Menu(metaclass=_MenuMeta):
Handles reporting of errors while updating the menu from events.
The default behaviour is to log the exception.
This may be overriden by subclasses.
This may be overridden by subclasses.
Parameters
----------

View File

@ -44,7 +44,7 @@ async def test_bounded_gather():
if isinstance(result, RuntimeError):
num_failed += 1
else:
assert result == i # verify_permissions original orde
assert result == i # verify_permissions original order
assert 0 <= result < num_tasks
assert 0 < status[1] <= num_concurrent