re-add _reload function
This commit is contained in:
parent
7b6905454f
commit
86d46c9917
1 changed files with 4 additions and 0 deletions
|
@ -45,6 +45,10 @@ class Module(ModuleManager.BaseModule):
|
|||
self._catch(name, lambda: self.bot.modules.unload_module(name))
|
||||
event["stdout"].write("Unloaded '%s'" % name)
|
||||
|
||||
def _reload(self, name):
|
||||
self.bot.modules.unload_module(name)
|
||||
definition = self.bot.modules.find_module(name)
|
||||
self.bot.modules.load_module(bot, definition)
|
||||
@utils.hook("received.command.reloadmodule", min_args=1)
|
||||
def reload(self, event):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue