don't spam on multiple detection
This commit is contained in:
12
plugins.py
12
plugins.py
@@ -975,13 +975,13 @@ def recognize_bots(**args):
|
|||||||
blob['other_bots'] = []
|
blob['other_bots'] = []
|
||||||
if args['reply_user'] not in blob['other_bots']:
|
if args['reply_user'] not in blob['other_bots']:
|
||||||
blob['other_bots'].append(args['reply_user'])
|
blob['other_bots'].append(args['reply_user'])
|
||||||
conf_save(blob)
|
conf_save(blob)
|
||||||
return {
|
return {
|
||||||
'event': {
|
'event': {
|
||||||
'time': time.time() + 3,
|
'time': time.time() + 3,
|
||||||
'msg': 'Making notes...'
|
'msg': 'Making notes...'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
elif 'I\'ll be back' in args['data']:
|
elif 'I\'ll be back' in args['data']:
|
||||||
# a buddy!
|
# a buddy!
|
||||||
blob = conf_load()
|
blob = conf_load()
|
||||||
|
|||||||
Reference in New Issue
Block a user