mirror of
https://github.com/Floriansylvain/Risitas_BOT.git
synced 2026-08-19 11:43:16 +02:00
🩹 - Quick fix for load/unload (but still not working)
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from __main__ import startup_date
|
from __main__ import startup_date
|
||||||
|
import os, sys
|
||||||
import discord
|
import discord
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
@@ -12,17 +13,16 @@ class OwnerCmds(commands.Cog, name='Owner commands'):
|
|||||||
@commands.command(hidden=True, ignore_extra=False)
|
@commands.command(hidden=True, ignore_extra=False)
|
||||||
@commands.is_owner()
|
@commands.is_owner()
|
||||||
async def loadext(self, ctx, extension):
|
async def loadext(self, ctx, extension):
|
||||||
bot.load_extension(extension)
|
self.bot.load_extension(extension)
|
||||||
await ctx.send("Extension loaded.")
|
await ctx.send("Extension loaded.")
|
||||||
|
|
||||||
|
|
||||||
@commands.command(hidden=True, ignore_extra=False)
|
@commands.command(hidden=True, ignore_extra=False)
|
||||||
@commands.is_owner()
|
@commands.is_owner()
|
||||||
async def unloadext(self, ctx, extension):
|
async def unloadext(self, ctx, extension):
|
||||||
bot.unload_extension(extension)
|
self.bot.unload_extension(extension)
|
||||||
await ctx.send("Extension unloaded.")
|
await ctx.send("Extension unloaded.")
|
||||||
|
|
||||||
|
|
||||||
@commands.command(hidden=True)
|
@commands.command(hidden=True)
|
||||||
@commands.is_owner()
|
@commands.is_owner()
|
||||||
async def update(self, ctx):
|
async def update(self, ctx):
|
||||||
|
|||||||
Reference in New Issue
Block a user