test errors
This commit is contained in:
parent
c53fd11789
commit
5df671a4b1
@ -8,7 +8,6 @@ from .imports import checks, utils
|
|||||||
|
|
||||||
config_dir = 'config/'
|
config_dir = 'config/'
|
||||||
admin_id_file = 'admin_ids'
|
admin_id_file = 'admin_ids'
|
||||||
extension_dir = 'extensions'
|
|
||||||
owner_id = 351794468870946827
|
owner_id = 351794468870946827
|
||||||
embed_color = discord.Colour.from_rgb(49, 107, 111)
|
embed_color = discord.Colour.from_rgb(49, 107, 111)
|
||||||
bot_config_file = 'bot_config.json'
|
bot_config_file = 'bot_config.json'
|
||||||
|
|||||||
@ -142,8 +142,7 @@ class BotEvents:
|
|||||||
ctx.created_at, ctx.system_content, ctx.author.id, ctx.id]
|
ctx.created_at, ctx.system_content, ctx.author.id, ctx.id]
|
||||||
await self.bot.db_con.execute(sql, *msg_data)
|
await self.bot.db_con.execute(sql, *msg_data)
|
||||||
|
|
||||||
@staticmethod
|
async def on_command_error(self, ctx, error):
|
||||||
async def on_command_error(ctx, error):
|
|
||||||
if ctx.channel.id == 418452585683484680 and type(error) == discord.ext.commands.errors.CommandNotFound:
|
if ctx.channel.id == 418452585683484680 and type(error) == discord.ext.commands.errors.CommandNotFound:
|
||||||
return
|
return
|
||||||
for page in utils.paginate(dir(error)):
|
for page in utils.paginate(dir(error)):
|
||||||
|
|||||||
@ -59,12 +59,11 @@ class Utils:
|
|||||||
@commands.command()
|
@commands.command()
|
||||||
@commands.is_owner()
|
@commands.is_owner()
|
||||||
async def sysinfo(self, ctx):
|
async def sysinfo(self, ctx):
|
||||||
await ctx.send(f'''
|
await ctx.send(f'```ml\n'
|
||||||
```ml
|
f'CPU Percentages: {psutil.cpu_percent(percpu=True)}\n'
|
||||||
CPU Percentages: {psutil.cpu_percent(percpu=True)}
|
f'Memory Usage: {psutil.virtual_memory().percent}%\n'
|
||||||
Memory Usage: {psutil.virtual_memory().percent}%
|
f'Disc Usage: {psutil.disk_usage("/").percent}%\n'
|
||||||
Disc Usage: {psutil.disk_usage("/").percent}%
|
f'```')
|
||||||
```''')
|
|
||||||
|
|
||||||
@commands.command(hidden=True)
|
@commands.command(hidden=True)
|
||||||
async def role(self, ctx, role: str):
|
async def role(self, ctx, role: str):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user