fixing help
This commit is contained in:
parent
c056d71362
commit
044653e33c
0
app/bot.py
Normal file → Executable file
0
app/bot.py
Normal file → Executable 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):
|
||||
|
@ -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
0
app/stock.py
Normal file → Executable 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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user