Skip to content

Commit

Permalink
docs: minor grammar fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JustaSqu1d authored May 29, 2024
1 parent 6f12c94 commit 9293a29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/popular-topics/cogs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ to avoid making your bot's files messy and cluttered.

## Getting Started

First, you'll need to create a folder to store your cogs, eg. `cogs/`.
First, you'll need to create a folder to store your cogs, e.g. `cogs/`.

Then, create a file inside the folder, eg. `cogs/greetings.py`. By convention, the file name should
Then, create a file inside the folder, e.g. `cogs/greetings.py`. By convention, the file name should
be the same as the name of the cog or module.

We can then create the cog.
Expand Down Expand Up @@ -73,7 +73,7 @@ bot.load_extension('cogs.greetings')
```

This loads the file `cogs/greetings.py` and adds it to the bot.
The argument of `load_extension` should be your cog's path (eg. cogs/greetings.py) without the file
The argument of `load_extension` should be your cog's path (e.g. cogs/greetings.py) without the file
extension and with the `/` replaced with `.`

If you have multiple cogs, you can add them all at once by adding the following code:
Expand Down

0 comments on commit 9293a29

Please sign in to comment.