Datastore: add a method to create a new empty tree
This commit is contained in:
parent
4d7d1ccab2
commit
418ff4f519
3 changed files with 10 additions and 5 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue