add /modules command
lists all modules. green if loaded, red otherwise
This commit is contained in:
8
misc.py
8
misc.py
@@ -143,3 +143,11 @@ def on_pyeval_command(sender, args):
|
||||
else:
|
||||
noperm(sender)
|
||||
return True
|
||||
|
||||
|
||||
@hook.command("modules")
|
||||
def on_modules_command(sender, args):
|
||||
plugin_header("Modules")
|
||||
for mod in shared["load_modules"]:
|
||||
color = "a" if mod in shared["modules"] else "c"
|
||||
msg(sender, "&" + color + mod)
|
||||
Reference in New Issue
Block a user