Create structure
This commit creates the first, inital structure for the project.
This commit is contained in:
31
cogs/help.py
Normal file
31
cogs/help.py
Normal file
@@ -0,0 +1,31 @@
|
||||
#
|
||||
# Cog for a custom Help Command
|
||||
#
|
||||
# https://discordpy.readthedocs.io/en/latest/ext/commands/cogs.html
|
||||
#
|
||||
|
||||
# IMPORTS
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
|
||||
# COG INIT
|
||||
class HelpCog(commands.Cog):
|
||||
def __init__(self, bot):
|
||||
self.bot = bot
|
||||
|
||||
# COG BODY
|
||||
@commands.command(
|
||||
name="aquabot"
|
||||
description="Prints a short help for new users"
|
||||
)
|
||||
async def aquabot(self, ctx):
|
||||
|
||||
await ctx.send("""
|
||||
I'm the usele... divine AquaBot!\n
|
||||
If you need help, try using the `help` command!\n
|
||||
""")
|
||||
|
||||
|
||||
# COG ENDING
|
||||
def setup(bot):
|
||||
bot.add_cog(HelpCog(bot))
|
||||
Reference in New Issue
Block a user