Skip to content

Commit 43522d2

Browse files
committed
Custom help command added
1 parent e7b6cd9 commit 43522d2

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

hexbot.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ async def play(self, ctx, *, url):
8686

8787
embed = discord.Embed(colour=discord.Colour(0x59FFC8), description=f"[{player.title}]({player.yt_link})")
8888
embed.set_thumbnail(url=player.thumbnail)
89-
embed.set_author(name="Now Playing 🎵", url=f"{player.url}", icon_url="https://im7.ezgif.com/tmp/ezgif-7-7181d4067412.gif")
89+
embed.set_author(name="Now Playing 🎵", url=f"{player.url}", icon_url="https://i.ibb.co/DGsmTvh/star.gif")
9090

9191
await ctx.send(embed=embed)
9292
# print(player.data)
@@ -337,12 +337,30 @@ def check(reaction, user):
337337
description='Relatively simply awesome bot.',
338338
case_insensitive=True)
339339

340+
bot.remove_command('help')
341+
340342
@bot.event
341343
async def on_ready():
342344
print('Logged in as {0} ({0.id})'.format(bot.user))
343345
print('Bot.....Activated')
344346
await bot.change_presence(status=discord.Status.idle, activity=discord.Game(name="Nothing"))
345347

348+
@bot.command()
349+
async def help(ctx):
350+
"""Display help"""
351+
embed = discord.Embed(title="Relatively simply awesome bot.", colour=discord.Colour(0x7f20a0), description="For more info you can visit [GitHub repo](https://github.com/1Prototype1/HexBot)")
352+
353+
embed.set_thumbnail(url="https://i.ibb.co/yqgDwNh/hexbot.jpg")
354+
embed.set_author(name="HexBot Help", url="https://discord.com/oauth2/authorize?client_id=747461870629290035&scope=bot", icon_url="https://i.ibb.co/yqgDwNh/hexbot.jpg")
355+
embed.set_footer(text="HexBot by [Prototype]#7731✨")
356+
357+
embed.add_field(name=":musical_note: Music Commands:", value="```join - Joins a voice channel\npause - Pauses the current song\nplay|p - Plays specified song\nresume - Resumes the paused song\nstop|dis - Stops and disconnects the bot\nvolume - Changes the player's volume```", inline=False)
358+
embed.add_field(name=":joystick: Game Commands:", value="```poll - Create a quick poll\n\t<question> <choices>\nquiz|trivia - Start a quiz game\ntally - Tally the created poll```", inline=False)
359+
embed.add_field(name=":jigsaw: Misc Commands:", value="```clear|cls - Delete the messages\nfortune|quote - Fortune Cookie!\n\t<category>[factoid|fortune|people]\nhelp - Display this message\nlist - Displays the list of\n\t\t\t\tvoice connected users\nping|latency - Pong! \nteams - Makes random teams (def. 2)\ntoss|flip - Flips a Coin```", inline=False)
360+
361+
await ctx.send(embed=embed)
362+
363+
346364
bot.add_cog(Music(bot))
347365
bot.add_cog(QuickPoll(bot))
348366
bot.add_cog(Misc(bot))

0 commit comments

Comments
 (0)