diff -r 9880bb697149 -r ac07779f788d mod_admin.py --- a/mod_admin.py Mon Jan 19 16:42:36 2015 -0500 +++ b/mod_admin.py Sat Apr 11 21:02:09 2015 +0300 @@ -1,5 +1,5 @@ from modulecore import command_error -import hgapi +import sys ModuleData = { 'commands': @@ -31,6 +31,13 @@ 'args': None, 'level': 'admin', }, + + { + 'name': 'modreload', + 'description': 'Reloads a module', + 'args': '', + 'level': 'admin', + }, ] } @@ -45,3 +52,6 @@ def cmd_die (bot, **rest): quit() + +def cmd_modreload (bot, args, **rest): + reload (sys.modules[args['module']]) \ No newline at end of file