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:
parent
544598f5fb
commit
e2f6fe68b9
1 changed files with 23 additions and 0 deletions
23
modules/help/__init__.py
Normal file
23
modules/help/__init__.py
Normal 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))
|
Loading…
Reference in a new issue