Search shim, and an encoding fix.
This commit is contained in:
@@ -11,7 +11,7 @@ def hello(phenny, input):
|
||||
greeting = random.choice(('Hi', 'Hey', 'Hello'))
|
||||
punctuation = random.choice(('', '!'))
|
||||
phenny.say(greeting + ' ' + input.nick + punctuation)
|
||||
hello.rule = r'(?i)(hi|hello|hey) $nickname\b'
|
||||
hello.rule = r'(?i)(hi|hello|hey) $nickname[ \t]*$'
|
||||
|
||||
def interjection(phenny, input):
|
||||
phenny.say(input.nick + '!')
|
||||
|
||||
Reference in New Issue
Block a user