didier/didier/cogs/debug_cog.py

27 lines
608 B
Python
Raw Normal View History

2022-08-29 16:21:47 +02:00
from discord.ext import commands
from overrides import overrides
from didier import Didier
2022-08-29 20:24:42 +02:00
class DebugCog(commands.Cog):
2022-08-29 16:21:47 +02:00
"""Testing cog for dev purposes"""
client: Didier
def __init__(self, client: Didier):
self.client = client
@overrides
async def cog_check(self, ctx: commands.Context) -> bool:
return await self.client.is_owner(ctx.author)
2022-08-29 20:24:42 +02:00
@commands.command(aliases=["Dev"])
async def debug(self, ctx: commands.Context):
2022-08-29 16:21:47 +02:00
"""Debugging command"""
async def setup(client: Didier):
"""Load the cog"""
2022-08-29 20:24:42 +02:00
await client.add_cog(DebugCog(client))