1
Fork 0
mirror of https://github.com/wlinator/luminara.git synced 2024-10-02 20:23:12 +00:00

Change the output of the help command

This commit is contained in:
wlinator 2024-04-12 02:31:39 +02:00
parent 544598f5fb
commit e2f6fe68b9

23
modules/help/__init__.py Normal file
View file

@ -0,0 +1,23 @@
from discord.ext import commands
import lib.formatter
import lib.checks
class Help(commands.Cog):
def __init__(self, client):
self.client = client
@commands.slash_command(
name="help",
description="Get Racu help.",
)
@lib.checks.allowed_in_channel()
async def help_command(self, ctx):
prefix = lib.formatter.get_prefix(ctx)
return await ctx.respond(content=f"Please use Racu's prefix to get help. Type `{prefix}help`", ephemeral=True)
def setup(client):
client.add_cog(Help(client))