fixing help

This commit is contained in:
Luke Robles 2022-05-12 15:58:21 -07:00
parent d196e2746d
commit 4ca6aa2df0
5 changed files with 5 additions and 5 deletions

0
app/bot.py Normal file → Executable file
View File

View File

@ -211,14 +211,14 @@ class ServerUtils(commands.Cog):
await ctx.reply(":x: Error: %s :x:" % e)
@commands.command(name="help")
async def help(self, ctx: commands.Context, method):
async def help(self, ctx: commands.Context, method=None):
import help_methods
if len(ctx.message.content.split()) > 1:
if method:
await ctx.reply(help_methods.parse_message(method))
else:
await ctx.reply(embed=help_methods.get_help_embed(bot))
await ctx.reply(embed=help_methods.get_help_embed(self.bot))
def setup(bot):

View File

@ -252,7 +252,7 @@ def get_help_embed(bot):
description = "\nBelow you can see all the commands I know.\n\n**Have a nice day!**"
embed = discord.Embed(description=description, color=0x428BCA, type="rich")
embed.set_author(
name="Hello! I'm {}".format(bot.user.name), icon_url=bot.user.default_avatar_url
name="Hello! I'm {}".format(bot.user.name), icon_url=bot.user.avatar
)
for category in categories:

0
app/stock.py Normal file → Executable file
View File

View File

@ -6,7 +6,7 @@ replicaCount: 1
image:
# Overrides the image tag whose default is the chart appVersion.
tag: "193"
tag: "194"
repository: ldooks/dragon-bot
pullPolicy: IfNotPresent