WatchWebsite module fully working with nemubot V3
This commit is contained in:
parent
bdbc234bb5
commit
c89ef4c543
5 changed files with 139 additions and 146 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue