From 16e7af70ff70f47cb03dc2a524c6de1bfebc0445 Mon Sep 17 00:00:00 2001 From: AmilieCoding Date: Fri, 20 Sep 2024 16:50:14 +0100 Subject: [PATCH] I started making a level command :3 It's not useful but I hope its a good start :3 --- tux/cogs/fun/levels.py | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 tux/cogs/fun/levels.py diff --git a/tux/cogs/fun/levels.py b/tux/cogs/fun/levels.py new file mode 100644 index 000000000..ac1bf3af3 --- /dev/null +++ b/tux/cogs/fun/levels.py @@ -0,0 +1,35 @@ +import discord +from discord.ext import commands + +from tux.bot import Tux +from tux.ui.embeds import EmbedCreator + +client = discord.Client + + +usermessages = [] + + +class Levels(commands.Cog): + def __init__(self, bot: Tux) -> None: + self.bot = bot + + @commands.hybrid_group( + name="level", + aliases=["lvl"], + ) + @commands.guild_only() + async def main(self, ctx: commands.Context[Tux]) -> None: + embed = EmbedCreator.create_embed( + bot=self.bot, + embed_type=EmbedCreator.INFO, + user_name="Tux - EXP", + title="You are level level", + description="Your have exp exp!", + ) + + await ctx.send(embed=embed) + + +async def setup(bot: Tux) -> None: + await bot.add_cog(Levels(bot))