QD module: fix alert when sending the answer without nemubot:
This commit is contained in:
parent
26ce52b068
commit
f32e819242
1 changed files with 6 additions and 0 deletions
|
|
@ -22,5 +22,11 @@ class DelayedTuple:
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
def good(self, res):
|
||||||
|
if res is not None:
|
||||||
|
return re.match(".*" + self.regexp + ".*", res.lower() + " ") is not None
|
||||||
|
else:
|
||||||
|
return False
|
||||||
|
|
||||||
def wait(self, timeout):
|
def wait(self, timeout):
|
||||||
self.delayEvnt.wait(timeout)
|
self.delayEvnt.wait(timeout)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue