mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[Misc] Typo fixes (#3427)
* [Misc] Typo fixes * Changelog * Trivia list * Update 3427.misc.rst * Changelog
This commit is contained in:
parent
77235f7750
commit
e1a110b1bf
1
changelog.d/3427.misc.rst
Normal file
1
changelog.d/3427.misc.rst
Normal file
@ -0,0 +1 @@
|
|||||||
|
Typo fixes in doc strings.
|
||||||
1
changelog.d/trivia/3427.bugfix.rst
Normal file
1
changelog.d/trivia/3427.bugfix.rst
Normal file
@ -0,0 +1 @@
|
|||||||
|
Trivia list typo fixes.
|
||||||
@ -6,7 +6,7 @@ Shared API Keys
|
|||||||
|
|
||||||
Red has a central API key storage utilising the core bots config. This allows cog creators to add a single location to store API keys for their cogs which may be shared between other cogs.
|
Red has a central API key storage utilising the core bots config. This allows cog creators to add a single location to store API keys for their cogs which may be shared between other cogs.
|
||||||
|
|
||||||
There needs to be some consistency between cog creators when using shared API keys between cogs. To help make this easier service should be all **lowercase** and the key names should match the naming convetion of the API being accessed.
|
There needs to be some consistency between cog creators when using shared API keys between cogs. To help make this easier service should be all **lowercase** and the key names should match the naming convention of the API being accessed.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
|
|||||||
@ -7,7 +7,7 @@ Commands Package
|
|||||||
This package acts almost identically to :doc:`discord.ext.commands <dpy:ext/commands/api>`; i.e.
|
This package acts almost identically to :doc:`discord.ext.commands <dpy:ext/commands/api>`; i.e.
|
||||||
all of the attributes from discord.py's are also in ours.
|
all of the attributes from discord.py's are also in ours.
|
||||||
Some of these attributes, however, have been slightly modified, while others have been added to
|
Some of these attributes, however, have been slightly modified, while others have been added to
|
||||||
extend functionlities used throughout the bot, as outlined below.
|
extend functionalities used throughout the bot, as outlined below.
|
||||||
|
|
||||||
.. autofunction:: redbot.core.commands.command
|
.. autofunction:: redbot.core.commands.command
|
||||||
|
|
||||||
|
|||||||
@ -90,7 +90,7 @@ class Alias(commands.Cog):
|
|||||||
|
|
||||||
def is_command(self, alias_name: str) -> bool:
|
def is_command(self, alias_name: str) -> bool:
|
||||||
"""
|
"""
|
||||||
The logic here is that if this returns true, the name shouldnt be used for an alias
|
The logic here is that if this returns true, the name should not be used for an alias
|
||||||
The function name can be changed when alias is reworked
|
The function name can be changed when alias is reworked
|
||||||
"""
|
"""
|
||||||
command = self.bot.get_command(alias_name)
|
command = self.bot.get_command(alias_name)
|
||||||
|
|||||||
@ -101,7 +101,7 @@ class Events(MixinMeta):
|
|||||||
while None in name_list: # clean out null entries from a bug
|
while None in name_list: # clean out null entries from a bug
|
||||||
name_list.remove(None)
|
name_list.remove(None)
|
||||||
if after.name in name_list:
|
if after.name in name_list:
|
||||||
# Ensure order is maintained without duplicates occuring
|
# Ensure order is maintained without duplicates occurring
|
||||||
name_list.remove(after.name)
|
name_list.remove(after.name)
|
||||||
name_list.append(after.name)
|
name_list.append(after.name)
|
||||||
while len(name_list) > 20:
|
while len(name_list) > 20:
|
||||||
|
|||||||
@ -95,7 +95,7 @@ class KickBanMixin(MixinMeta):
|
|||||||
except discord.Forbidden:
|
except discord.Forbidden:
|
||||||
return _("I'm not allowed to do that.")
|
return _("I'm not allowed to do that.")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
return e # TODO: impproper return type? Is this intended to be re-raised?
|
return e # TODO: improper return type? Is this intended to be re-raised?
|
||||||
|
|
||||||
if create_modlog_case:
|
if create_modlog_case:
|
||||||
try:
|
try:
|
||||||
|
|||||||
@ -61,7 +61,7 @@ At which Arena can you unlock X-Bow?:
|
|||||||
- 6
|
- 6
|
||||||
- Builder's Workshop
|
- Builder's Workshop
|
||||||
At which Arena do you get a chance for Legendary cards to appear in the shop?:
|
At which Arena do you get a chance for Legendary cards to appear in the shop?:
|
||||||
- Hog Mountian
|
- Hog Mountain
|
||||||
- A10
|
- A10
|
||||||
- 10
|
- 10
|
||||||
- Arena 10
|
- Arena 10
|
||||||
|
|||||||
@ -375,7 +375,7 @@ Porky Pig had a girlfriend named ________?:
|
|||||||
Randy Travis said his love was 'deeper than the ______'?:
|
Randy Travis said his love was 'deeper than the ______'?:
|
||||||
- Holler
|
- Holler
|
||||||
Richard Strauss' majestic overture "Also Sprach Zarathustra" was the theme music for which Stanley Kubrick film?:
|
Richard Strauss' majestic overture "Also Sprach Zarathustra" was the theme music for which Stanley Kubrick film?:
|
||||||
- "2001: A Space Odyessy"
|
- "2001: A Space Odyssey"
|
||||||
Rolling Stones first hit was written by what group?:
|
Rolling Stones first hit was written by what group?:
|
||||||
- The Beatles
|
- The Beatles
|
||||||
Russian modernist Igor _________?:
|
Russian modernist Igor _________?:
|
||||||
|
|||||||
@ -271,7 +271,7 @@ class BaseDriver(abc.ABC):
|
|||||||
|
|
||||||
The driver must be initialized before this operation.
|
The driver must be initialized before this operation.
|
||||||
|
|
||||||
The BaseDriver provides a generic method which may be overriden
|
The BaseDriver provides a generic method which may be overridden
|
||||||
by subclasses.
|
by subclasses.
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
|
|||||||
@ -217,7 +217,7 @@ class JsonDriver(BaseDriver):
|
|||||||
|
|
||||||
def _save_json(path: Path, data: Dict[str, Any]) -> None:
|
def _save_json(path: Path, data: Dict[str, Any]) -> None:
|
||||||
"""
|
"""
|
||||||
This fsync stuff here is entirely neccessary.
|
This fsync stuff here is entirely necessary.
|
||||||
|
|
||||||
On windows, it is not available in entirety.
|
On windows, it is not available in entirety.
|
||||||
If a windows user ends up with tons of temp files, they should consider hosting on
|
If a windows user ends up with tons of temp files, they should consider hosting on
|
||||||
|
|||||||
@ -21,7 +21,7 @@ class AntiSpam:
|
|||||||
|
|
||||||
# TODO : Decorator interface for command check using `spammy`
|
# TODO : Decorator interface for command check using `spammy`
|
||||||
# with insertion of the antispam element into context
|
# with insertion of the antispam element into context
|
||||||
# for manual stamping on succesful command completion
|
# for manual stamping on successful command completion
|
||||||
|
|
||||||
default_intervals = [
|
default_intervals = [
|
||||||
(timedelta(seconds=5), 3),
|
(timedelta(seconds=5), 3),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user