Phenny2, now being tested on Freenode as the main phenny.
This commit is contained in:
0
opt/__init__.py
Normal file
0
opt/__init__.py
Normal file
22
opt/freenode.py
Normal file
22
opt/freenode.py
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env python
|
||||
"""
|
||||
freenode.py - Freenode Specific Stuff
|
||||
Copyright 2008, Sean B. Palmer, inamidst.com
|
||||
Licensed under the Eiffel Forum License 2.
|
||||
|
||||
http://inamidst.com/phenny/
|
||||
"""
|
||||
|
||||
def replaced(phenny, input):
|
||||
command = input.group(1)
|
||||
response = {
|
||||
'cp': '.cp has been replaced by .u',
|
||||
'pc': '.pc has been replaced by .u',
|
||||
'unicode': '.unicode has been replaced by .u'
|
||||
}[command]
|
||||
phenny.reply(response)
|
||||
replaced.commands = ['cp', 'pc', 'unicode']
|
||||
replaced.priority = 'low'
|
||||
|
||||
if __name__ == '__main__':
|
||||
print __doc__.strip()
|
||||
Reference in New Issue
Block a user