mirror of
https://github.com/Fluffy-Bean/Lynxie.git
synced 2025-05-14 08:02:17 +00:00
37 lines
1.2 KiB
Python
37 lines
1.2 KiB
Python
import discord
|
|
from discord.ext import commands
|
|
from lynxie.config import LYNXIE_PREFIX
|
|
|
|
|
|
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",
|
|
"animal <animal>": "Get a random image of an animal!",
|
|
"overlay <image> <style>": "Overlay an image with a "
|
|
"style, e.g. `bubble mask`",
|
|
"saveable": "Turn image into a GIF to save within Discord",
|
|
}
|
|
|
|
@commands.command()
|
|
async def help(self, ctx):
|
|
embed = discord.Embed(
|
|
title="Help",
|
|
description=f"Lynxie's prefix is `{LYNXIE_PREFIX}`",
|
|
colour=discord.Colour.orange(),
|
|
)
|
|
|
|
for command, description in self.help_commands.items():
|
|
embed.add_field(
|
|
name=command,
|
|
value=description,
|
|
inline=False,
|
|
)
|
|
|
|
await ctx.reply(embed=embed)
|