test errors
This commit is contained in:
parent
c53fd11789
commit
5df671a4b1
@ -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'
|
||||
|
||||
@ -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)):
|
||||
|
||||
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user