mirror of
https://github.com/wlinator/luminara.git
synced 2024-10-02 20:23:12 +00:00
Turn help command into simple embeds.
This commit is contained in:
parent
71b2e8b4e8
commit
725e62356f
3 changed files with 14 additions and 1 deletions
4
main.py
4
main.py
|
@ -13,6 +13,7 @@ from handlers.ReactionHandler import ReactionHandler
|
|||
from handlers.XPHandler import XPHandler
|
||||
from handlers import LoggingHandler
|
||||
from services.GuildConfig import GuildConfig
|
||||
from services.Help import RacuHelp
|
||||
|
||||
load_dotenv('.env')
|
||||
instance = os.getenv("INSTANCE")
|
||||
|
@ -26,7 +27,8 @@ client = bridge.Bot(
|
|||
owner_id=os.getenv('OWNER_ID'),
|
||||
command_prefix=get_prefix,
|
||||
intents=discord.Intents.all(),
|
||||
status=discord.Status.online
|
||||
status=discord.Status.online,
|
||||
help_command=RacuHelp()
|
||||
)
|
||||
|
||||
logs = LoggingHandler.setup_logger()
|
||||
|
|
|
@ -14,6 +14,7 @@ class PingCog(commands.Cog):
|
|||
|
||||
@bridge.bridge_command(
|
||||
name="ping",
|
||||
aliases=["p"],
|
||||
description="Simple status check.",
|
||||
guild_only=True
|
||||
)
|
||||
|
|
10
services/Help.py
Normal file
10
services/Help.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
import discord
|
||||
from discord.ext import commands
|
||||
|
||||
|
||||
class RacuHelp(commands.MinimalHelpCommand):
|
||||
async def send_pages(self):
|
||||
destination = self.get_destination()
|
||||
for page in self.paginator.pages:
|
||||
embed = discord.Embed(description=page)
|
||||
await destination.send(embed=embed)
|
Loading…
Reference in a new issue