2
0
mirror of https://github.com/Nick80835/microbot synced 2025-08-22 10:09:40 +00:00

make reload an owner command

This commit is contained in:
Nick80835 2024-09-19 14:32:38 -04:00
parent f1882912d1
commit a27fe7ea70

View File

@ -93,7 +93,7 @@ async def execute(event):
await exec_msg.edit(f"**Execution:**\n```{exec_text}```\n**Return:**\n```{eval_ret}```") await exec_msg.edit(f"**Execution:**\n```{exec_text}```\n**Return:**\n```{eval_ret}```")
@ldr.add("reload", sudo=True, hide_help=True) @ldr.add("reload", owner=True, hide_help=True)
async def reload_modules(event): async def reload_modules(event):
errors = ldr.reload_all_modules() errors = ldr.reload_all_modules()