Skip to content

Commit

Permalink
feat: old changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rdash99 committed Aug 8, 2024
1 parent ee1fc8b commit 0e1111e
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/discord_bot/commands/exp/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Logging module
import logging
# Importing subcommands
from .levels import Levels


log = logging.getLogger(__name__)


class ExpCategory(Levels, name=__name__[9:]):
"""
Full of lots of fun commands
"""

def __init__(self, client):
self.client = client
Levels.__init__(self, client)


def setup(client):
log.debug(f'loading {__name__}')
client.add_cog(ExpCategory(client))


def teardown(client):
log.debug(f'{__name__} unloaded')
19 changes: 19 additions & 0 deletions src/discord_bot/commands/exp/levels.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import logging
from discord.ext import commands
import discord
log = logging.getLogger(__name__)


class Levels(commands.Cog):
def __init__(self, client):
self.client = client

@commands.command()
async def levels(self, ctx: commands.Context):
"""
:return: embed with levels
"""
embed = discord.Embed(color=discord.Color.gold())
embed.set_image(url="https://cdn.arstechnica.net/wp-content/uploads/2022/03/38097_017.jpg")

await ctx.send(embed=embed)

0 comments on commit 0e1111e

Please sign in to comment.