2008-02-21 07:06:33 -05:00
|
|
|
#!/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)
|
2008-05-31 06:46:48 -04:00
|
|
|
responses = {
|
2008-02-21 07:06:33 -05:00
|
|
|
'cp': '.cp has been replaced by .u',
|
|
|
|
'pc': '.pc has been replaced by .u',
|
2008-02-23 07:16:43 -05:00
|
|
|
'unicode': '.unicode has been replaced by .u',
|
|
|
|
'compare': '.compare has been replaced by .gcs (googlecounts)',
|
|
|
|
'map': 'the .map command has been removed; ask sbp for details',
|
|
|
|
'acronym': 'the .acronym command has been removed; ask sbp for details',
|
|
|
|
'img': 'the .img command has been removed; ask sbp for details',
|
|
|
|
'v': '.v has been replaced by .val',
|
|
|
|
'validate': '.validate has been replaced by .validate',
|
|
|
|
'thesaurus': ".thesaurus hasn't been ported to my new codebase yet",
|
2008-02-29 10:36:18 -05:00
|
|
|
'rates': "moon wanter. moOOoon wanter!",
|
|
|
|
'web': 'the .web command has been removed; ask sbp for details',
|
|
|
|
'origin': ".origin hasn't been ported to my new codebase yet"
|
2008-05-31 06:46:48 -04:00
|
|
|
}
|
|
|
|
try: response = responses[command]
|
|
|
|
except KeyError: return
|
|
|
|
else: phenny.reply(response)
|
2008-02-23 07:16:43 -05:00
|
|
|
replaced.commands = [
|
|
|
|
'cp', 'pc', 'unicode', 'compare', 'map', 'acronym', 'img',
|
2008-02-29 10:36:18 -05:00
|
|
|
'v', 'validate', 'thesaurus', 'rates', 'web', 'mangle', 'origin'
|
2008-02-23 07:16:43 -05:00
|
|
|
]
|
2008-02-21 07:06:33 -05:00
|
|
|
replaced.priority = 'low'
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
print __doc__.strip()
|