Datastore: add a method to create a new empty tree

This commit is contained in:
nemunaire 2015-04-06 13:01:02 +02:00 committed by nemunaire
commit 418ff4f519
3 changed files with 10 additions and 5 deletions

View file

@ -80,9 +80,8 @@ class ModuleContext:
module.logger.error("Try to send a message to the unknown server: %s", server)
return False
else:
else: # Used when using outside of nemubot
from nemubot.tools.xmlparser import module_state
self.data = module_state.ModuleState("nemubotstate")
def add_hook(store, hook):