mirror of
http://aero2k.de/t/repos/urlbot-native.git
synced 2017-09-06 15:25:38 +02:00
mv moin_strings_* to string_constants
This commit is contained in:
15
plugins.py
15
plugins.py
@@ -11,7 +11,7 @@ import traceback
|
|||||||
import urllib.parse
|
import urllib.parse
|
||||||
from local_config import conf, set_conf
|
from local_config import conf, set_conf
|
||||||
from common import *
|
from common import *
|
||||||
from string_constants import excuses
|
from string_constants import excuses, moin_strings_hi, moin_strings_bye
|
||||||
from urlbot import extract_title
|
from urlbot import extract_title
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
|
|
||||||
@@ -121,19 +121,6 @@ def parse_skynet(**args):
|
|||||||
|
|
||||||
@pluginfunction('moin', 'parse hi/bye', ptypes_PARSE)
|
@pluginfunction('moin', 'parse hi/bye', ptypes_PARSE)
|
||||||
def parse_moin(**args):
|
def parse_moin(**args):
|
||||||
moin_strings_hi = [
|
|
||||||
'Hi',
|
|
||||||
'Guten Morgen', 'Morgen',
|
|
||||||
'Moin',
|
|
||||||
'Tag', 'Tach',
|
|
||||||
'NAbend', 'Abend',
|
|
||||||
'Hallo', 'Hello'
|
|
||||||
]
|
|
||||||
moin_strings_bye = [
|
|
||||||
'Nacht', 'gN8', 'N8',
|
|
||||||
'bye',
|
|
||||||
]
|
|
||||||
|
|
||||||
for direction in [moin_strings_hi, moin_strings_bye]:
|
for direction in [moin_strings_hi, moin_strings_bye]:
|
||||||
for d in direction:
|
for d in direction:
|
||||||
words = re.split(r'\W+', args['data'])
|
words = re.split(r'\W+', args['data'])
|
||||||
|
|||||||
@@ -473,3 +473,17 @@ The math co-processor had an overflow error that leaked out and shorted the RAM
|
|||||||
Leap second overloaded RHEL6 servers
|
Leap second overloaded RHEL6 servers
|
||||||
DNS server drank too much and had a hiccup
|
DNS server drank too much and had a hiccup
|
||||||
'''.split('\n')[1:-1]
|
'''.split('\n')[1:-1]
|
||||||
|
|
||||||
|
moin_strings_hi = [
|
||||||
|
'Hi',
|
||||||
|
'Guten Morgen', 'Morgen',
|
||||||
|
'Moin',
|
||||||
|
'Tag', 'Tach',
|
||||||
|
'NAbend', 'Abend',
|
||||||
|
'Hallo', 'Hello'
|
||||||
|
]
|
||||||
|
moin_strings_bye = [
|
||||||
|
'Nacht', 'gN8', 'N8',
|
||||||
|
'bye',
|
||||||
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user