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

Add /help which leads the user to .help

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

View file

@ -2,8 +2,10 @@ import discord
from discord.ext import commands
from dotenv import load_dotenv
from config.parser import JsonCache
from lib.embeds.error import HelpErrors
art = JsonCache.read_json("art")
load_dotenv('.env')
@ -24,6 +26,10 @@ class RacuHelp(commands.HelpCommand):
async def send_bot_help(self, mapping):
embed = discord.Embed(color=discord.Color.blurple())
embed.set_author(name="Help Command", icon_url=art["logo"]["transparent"])
embed.description = ("Still need help? See [the wiki](https://wiki.wlinator.org/)!\n"
"Bug reports & feature requests go [here](https://gitlab.com/wlinator/Racu/-/issues/new).")
for cog, racu_commands in mapping.items():
filtered = await self.filter_commands(racu_commands, sort=True)