-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #559 from AmilieCoding/levels
I started making a level command :3
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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)) |