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

parse_moin_bye(): be silent for given users

This commit is contained in:
urlbot
2015-06-18 13:36:57 +02:00
parent ea220cce60
commit c52d8a105d
2 changed files with 13 additions and 0 deletions

View File

@@ -46,6 +46,9 @@ config = {
# the "dice" feature will use more efficient random data (0) for given users
'enhanced-random-user': ('FIXME', 'FIXME'),
# the "moin" feature will be "disabled" for given users
'moin-modified-user': (),
'tea_steep_time': (3*60 + 40),
'image_preview': True

View File

@@ -142,6 +142,16 @@ def parse_moin_bye(**args):
for w in words:
if d.lower() == w.lower():
if args['reply_user'] in conf('moin-modified-user'):
logger('plugin', 'being "quiet" for %s' % w)
return {
'msg': '/me %s' % random.choice([
"doesn't say anything at all",
'whistles uninterested',
'just ignores this incident'
])
}
logger('plugin', 'sent %s reply for %s' % (
'moin' if direction is moin else 'bye', w
))