Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Add help command #18

Merged
merged 3 commits into from
Jul 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#hi sploon is the superior game to league
command_prefix = '?'
bot = commands.Bot(command_prefix=command_prefix)

bot.remove_command('help')

cogs_list = ['cogs.user', 'cogs.admin', 'cogs.xp']

Expand All @@ -25,6 +25,17 @@ async def on_ready():
async def bevo(ctx):
await ctx.send("bot!")

@bot.command(name='help')
embed = discord.Embed(title="Howdy!", colour=discord.Colour(0xBF5700), url="https://longhorngaming.gg/", description="I'm a bot created for the Longhorn Gaming Discord. Below are my commands:", timestamp=datetime.datetime.now())
embed.set_author(name="Bevo Bot")
embed.set_footer(text="Bevo Bot")

embed.add_field(name="!help :question:", value="You're already here!\n")
embed.add_field(name="!profile :person_curly_hair:", value="Check your XP and Tier.\n")
embed.add_field(name="!tiers :medal:", value="A brief explanation of tiers and rewards.\n")

await ctx.channel.send(embed=embed)


# Connection to DB, copied from main-old, likely needs revision
async def connectToDB():
Expand Down