Add more commands

This commit is contained in:
Michał Gdula 2023-09-07 18:20:00 +01:00
parent ca8813cdc0
commit cea527ae79
3 changed files with 78 additions and 0 deletions

33
lynxie/commands/help.py Normal file
View file

@ -0,0 +1,33 @@
import discord
from discord.ext import commands
class Help(commands.Cog):
def __init__(self, bot):
self.bot = bot
self.help_commands = {
"help": "Show this message",
"ping": "Pong!",
"hello": "Say hello to Lynxie!",
"join": "Join the voice channel you're in",
"play <url>": "Play a song from YouTube, SoundCloud, etc.",
"stop": "Stop the current song and leave the voice channel",
"e621": "Search e621.net",
}
@commands.command()
async def help(self, ctx):
embed = discord.Embed(
title='Help',
description='Lynxie\'s prefix is `AAAA `',
colour=discord.Colour.orange(),
)
for command, description in self.help_commands.items():
embed.add_field(
name=command,
value=description,
inline=False,
)
await ctx.send(embed=embed)