fixing help
This commit is contained in:
parent
d196e2746d
commit
4ca6aa2df0
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)
|
await ctx.reply(":x: Error: %s :x:" % e)
|
||||||
|
|
||||||
@commands.command(name="help")
|
@commands.command(name="help")
|
||||||
async def help(self, ctx: commands.Context, method):
|
async def help(self, ctx: commands.Context, method=None):
|
||||||
|
|
||||||
import help_methods
|
import help_methods
|
||||||
|
|
||||||
if len(ctx.message.content.split()) > 1:
|
if method:
|
||||||
await ctx.reply(help_methods.parse_message(method))
|
await ctx.reply(help_methods.parse_message(method))
|
||||||
else:
|
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):
|
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!**"
|
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 = discord.Embed(description=description, color=0x428BCA, type="rich")
|
||||||
embed.set_author(
|
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:
|
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:
|
image:
|
||||||
# Overrides the image tag whose default is the chart appVersion.
|
# Overrides the image tag whose default is the chart appVersion.
|
||||||
tag: "193"
|
tag: "194"
|
||||||
repository: ldooks/dragon-bot
|
repository: ldooks/dragon-bot
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user