Skip to content

Commit

Permalink
Merge pull request #12 from Cog-Creators/update
Browse files Browse the repository at this point in the history
Update example to include inheritance from commands.Cog base class.
  • Loading branch information
Redjumpman authored Jan 30, 2019
2 parents 2d9859f + 90d22b1 commit e4ecab4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion myfirstcog/myfirstcog.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


# Classname should be CamelCase and the same spelling as the folder
class MyFirstCog:
class MyFirstCog(commands.Cog):
"""Description of the cog visible with [p]help MyFirstCog"""

@commands.command()
Expand Down
2 changes: 1 addition & 1 deletion mysecondcog/mysecondcog.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


# Classname should be CamelCase and the same spelling as the folder
class MySecondCog:
class MySecondCog(commands.Cog):
"""Description of the cog visible with [p]help MySecondCog"""

@commands.command()
Expand Down
2 changes: 1 addition & 1 deletion mythridcog/mythirdcog.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


# Classname should be CamelCase and the same spelling as the folder
class MyThirdCog:
class MyThirdCog(commands.Cog):
"""Description of the cog visible with [p]help MyThirdCog"""

@commands.command()
Expand Down

0 comments on commit e4ecab4

Please sign in to comment.