WatchWebsite module fully working with nemubot V3

This commit is contained in:
Némunaire 2012-06-24 02:20:19 +02:00
commit c89ef4c543
5 changed files with 139 additions and 146 deletions

View file

@ -64,7 +64,7 @@ threadManager = None
newStrendEvt = threading.Event()
def load():
global DATAS
global DATAS, threadManager
#Define the index
DATAS.setIndex("name")
#Load the manager
@ -72,9 +72,10 @@ def load():
threadManager.start()
def close():
if self.threadManager is not None:
self.threadManager.stop = True
self.newStrendEvt.set()
global threadManager
if threadManager is not None:
threadManager.stop = True
newStrendEvt.set()
def parseanswer(msg):