🩹 - Quick fix for load/unload (but still not working)

This commit is contained in:
Florian SYLVAIN
2021-03-14 02:09:59 +01:00
parent 95b9c4cca6
commit f1516815e4
+3 -3
View File
@@ -1,6 +1,7 @@
from discord.ext import commands
from datetime import datetime
from __main__ import startup_date
import os, sys
import discord
import asyncio
@@ -12,17 +13,16 @@ class OwnerCmds(commands.Cog, name='Owner commands'):
@commands.command(hidden=True, ignore_extra=False)
@commands.is_owner()
async def loadext(self, ctx, extension):
bot.load_extension(extension)
self.bot.load_extension(extension)
await ctx.send("Extension loaded.")
@commands.command(hidden=True, ignore_extra=False)
@commands.is_owner()
async def unloadext(self, ctx, extension):
bot.unload_extension(extension)
self.bot.unload_extension(extension)
await ctx.send("Extension unloaded.")
@commands.command(hidden=True)
@commands.is_owner()
async def update(self, ctx):