mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[Docs] Use pascal casing for example cog in cog creation guide (#4930)
This commit is contained in:
parent
7c853db9f4
commit
01637a9798
@ -83,7 +83,7 @@ In that file, place the following code:
|
|||||||
|
|
||||||
from redbot.core import commands
|
from redbot.core import commands
|
||||||
|
|
||||||
class Mycog(commands.Cog):
|
class MyCog(commands.Cog):
|
||||||
"""My custom cog"""
|
"""My custom cog"""
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
@ -96,11 +96,11 @@ Open :code:`__init__.py`. In that file, place the following:
|
|||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
from .mycog import Mycog
|
from .mycog import MyCog
|
||||||
|
|
||||||
|
|
||||||
def setup(bot):
|
def setup(bot):
|
||||||
bot.add_cog(Mycog())
|
bot.add_cog(MyCog())
|
||||||
|
|
||||||
Make sure that both files are saved.
|
Make sure that both files are saved.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user