module formatting tweaks; tabs -> spaces and more
This commit is contained in:
@@ -8,16 +8,16 @@ 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)
|
||||
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 + '!')
|
||||
phenny.say(input.nick + '!')
|
||||
interjection.rule = r'$nickname!'
|
||||
interjection.priority = 'high'
|
||||
interjection.thread = False
|
||||
|
||||
if __name__ == '__main__':
|
||||
print(__doc__.strip())
|
||||
print(__doc__.strip())
|
||||
|
||||
Reference in New Issue
Block a user