mirror of
https://github.com/Fluffy-Bean/Lynxie.git
synced 2025-05-20 18:34:56 +00:00
Add more commands
This commit is contained in:
parent
ca8813cdc0
commit
cea527ae79
3 changed files with 78 additions and 0 deletions
33
lynxie/commands/help.py
Normal file
33
lynxie/commands/help.py
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue