diff options
Diffstat (limited to 'modules/ping.py')
-rwxr-xr-x | modules/ping.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/ping.py b/modules/ping.py index 23219ac..9ce7429 100755 --- a/modules/ping.py +++ b/modules/ping.py @@ -7,17 +7,17 @@ About: http://inamidst.com/phenny/ import random -def hello(phenny, input): - greeting = random.choice(('Hi', 'Hey', 'Hello')) - punctuation = random.choice(('', '!')) - phenny.say(greeting + ' ' + input.nick + punctuation) +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[ \t]*$' -def interjection(phenny, input): - phenny.say(input.nick + '!') +def interjection(phenny, input): + phenny.say(input.nick + '!') interjection.rule = r'$nickname!' interjection.priority = 'high' interjection.thread = False -if __name__ == '__main__': - print __doc__.strip() +if __name__ == '__main__': + print __doc__.strip() |