initial setup and help command

This commit is contained in:
2023-05-21 23:34:13 +01:00
parent 99384803db
commit 9569ad7ace
4 changed files with 163 additions and 0 deletions

23
help.py Normal file
View File

@@ -0,0 +1,23 @@
import discord
from discord.ext import commands
class AstroHelp(commands.HelpCommand):
# Help regular
async def send_bot_help(self, mapping):
await self.context.send("This is help")
# Help with specific command
async def send_command_help(self, command):
await self.context.send(f"You asked for help with: {command}")
# Help for a group
async def send_group_help(self, group):
await self.context.send(f"This is a group: {group}")
# Help for cog
async def send_cog_help(self, cog):
await self.context.send(f"This is a cog: {cog}")