-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
45 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,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') |
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,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) |