Files
aquabot/cogs/general.py
2020-01-22 22:29:16 +01:00

34 lines
696 B
Python

"""
Some general commands
https://discordpy.readthedocs.io/en/latest/ext/commands/cogs.html
"""
# IMPORTS - external
import discord
from discord.ext import commands
# COG INIT
class General(commands.Cog):
def __init__(self, bot):
self.bot = bot
# COG BODY
@commands.command(name="about")
async def about(self, ctx):
"""
Prints some information about myself
"""
embed = discord.Embed(colour=discord.Colour.blue())
embed.add_field(name="test", value="test2")
embed.set_footer(text="footer", icon_url="img/avatar.png")
await ctx.send(embed=embed)
# COG ENDING
def setup(bot):
bot.add_cog(General(bot))