First working version

This commit is contained in:
CramMK
2020-01-18 04:13:57 +01:00
parent 7e805ff13a
commit 818bafc604
14 changed files with 58 additions and 652 deletions

View File

@@ -20,7 +20,7 @@ class AdminCog(commands.Cog):
# used as "load cogs.COGNAME"
@commands.command(name="load", hidden=True)
@commands.is_owner()
async def cog_load(self, ctx, *, cog: str):
async def load(self, ctx, *, cog: str):
try:
self.bot.load_extension(cog)
@@ -33,7 +33,7 @@ class AdminCog(commands.Cog):
# used as "unload cogs.COGNAME"
@commands.command(name="unload", hidden=True)
@commands.is_owner()
async def cog_unload(self, ctx, *, cog: str):
async def unload(self, ctx, *, cog: str):
try:
self.bot.unload_extension(cog)
@@ -46,7 +46,7 @@ class AdminCog(commands.Cog):
# used as "reload cogs.COGNAME"
@commands.command(name="reload", hidden=True)
@commands.is_owner()
async def cog_reload(self, ctx, *, cog: str):
async def reload(self, ctx, *, cog: str):
try:
self.bot.unload_extension(cog)
@@ -59,4 +59,4 @@ class AdminCog(commands.Cog):
# COG ENDING
def setup(bot):
bot.add_cog(AdminCog(bot))
bot.add_cog(AdminCog(bot))