1
0
mirror of http://aero2k.de/t/repos/urlbot-native.git synced 2017-09-06 15:25:38 +02:00

temporarily disable full bot protection, fix light protection

This commit is contained in:
Thorsten S
2015-12-21 14:17:00 +01:00
parent 4e78a2229e
commit d9dff033b5
3 changed files with 6 additions and 4 deletions

View File

@@ -962,6 +962,7 @@ def recognize_bots(**args):
if username not in config.runtime_config_store['other_bots']:
config.runtime_config_store['other_bots'].append(username)
config.runtimeconf_persist()
log.info("Adding {} to the list of bots (now {})".format(username, config.runtime_config_store['other_bots']))
return {
'event': {
'time': time.time() + 3,
@@ -970,9 +971,9 @@ def recognize_bots(**args):
}
if any([phrase in args['data'] for phrase in unique_standard_phrases]):
_add_to_list(args['reply_user'], 'Making notes...')
return _add_to_list(args['reply_user'], 'Making notes...')
elif 'I\'ll be back' in args['data']:
_add_to_list(args['reply_user'], 'Hey there, buddy!')
return _add_to_list(args['reply_user'], 'Hey there, buddy!')
@pluginfunction("remove-from-botlist", "remove a user from the botlist", ptypes_COMMAND)