Files
aquabot/cogs/help.py
2020-10-09 11:25:12 +02:00

37 lines
977 B
Python

"""
Some help for the users
"""
import discord
from discord.ext import commands
from __main__ import PREFIX
class Help(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command(name="aquabot")
async def aquabot(self, ctx):
"""
Sends a short help for new users
"""
embed = discord.Embed(colour=discord.Colour.blue())
embed.set_thumbnail(url=ctx.me.avatar_url)
embed.add_field(name="Owner", value=self.bot.AppInfo.owner, inline=True)
embed.add_field(name="Command Prefix", value=PREFIX, inline=True)
embed.add_field(name="Source Code", value="[GitHub](https://github.com/crammk/aquabot)", inline=True)
embed.add_field(name="Help", value="Use the 'help' to get a list of commands!")
footer_text = "This Bot is a project by MarcMK."
embed.set_footer(text=footer_text)
await ctx.send(embed=embed)
def setup(bot):
bot.add_cog(Help(bot))