diff --git a/exts/admin.py b/exts/admin.py index 0fda361..ec84081 100644 --- a/exts/admin.py +++ b/exts/admin.py @@ -8,7 +8,6 @@ from .imports import checks, utils config_dir = 'config/' admin_id_file = 'admin_ids' -extension_dir = 'extensions' owner_id = 351794468870946827 embed_color = discord.Colour.from_rgb(49, 107, 111) bot_config_file = 'bot_config.json' diff --git a/exts/events.py b/exts/events.py index f7e4351..9dcd6f5 100644 --- a/exts/events.py +++ b/exts/events.py @@ -142,8 +142,7 @@ class BotEvents: ctx.created_at, ctx.system_content, ctx.author.id, ctx.id] await self.bot.db_con.execute(sql, *msg_data) - @staticmethod - async def on_command_error(ctx, error): + async def on_command_error(self, ctx, error): if ctx.channel.id == 418452585683484680 and type(error) == discord.ext.commands.errors.CommandNotFound: return for page in utils.paginate(dir(error)): diff --git a/exts/utils.py b/exts/utils.py index 10caf53..d722004 100644 --- a/exts/utils.py +++ b/exts/utils.py @@ -59,12 +59,11 @@ class Utils: @commands.command() @commands.is_owner() async def sysinfo(self, ctx): - await ctx.send(f''' - ```ml - CPU Percentages: {psutil.cpu_percent(percpu=True)} - Memory Usage: {psutil.virtual_memory().percent}% - Disc Usage: {psutil.disk_usage("/").percent}% - ```''') + await ctx.send(f'```ml\n' + f'CPU Percentages: {psutil.cpu_percent(percpu=True)}\n' + f'Memory Usage: {psutil.virtual_memory().percent}%\n' + f'Disc Usage: {psutil.disk_usage("/").percent}%\n' + f'```') @commands.command(hidden=True) async def role(self, ctx, role: str): @@ -227,7 +226,7 @@ class Utils: em.add_field(value=f'Total Time for Comprehensive test: {math.ceil(total_time)}ms', name=f'Average: **{round(total_time/count,1)}ms**', inline=False) - await msg.edit(embed=em) + await msg.edit(embed=em) @commands.group(case_insensitive=True) async def admin(self, ctx):