From f1516815e41e594879c705a6ce53f5a40fe533a6 Mon Sep 17 00:00:00 2001 From: Florian SYLVAIN Date: Sun, 14 Mar 2021 02:09:59 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20-=20Quick=20fix=20for=20load/unl?= =?UTF-8?q?oad=20(but=20still=20not=20working)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python/ext/cmd_owner.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/ext/cmd_owner.py b/python/ext/cmd_owner.py index 4bab8d9..3733827 100644 --- a/python/ext/cmd_owner.py +++ b/python/ext/cmd_owner.py @@ -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):