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)',
|
2010-01-13 08:11:32 -05:00
|
|
|
# 'map': 'the .map command has been removed; ask sbp for details',
|
2008-02-23 07:16:43 -05:00
|
|
|
'acronym': 'the .acronym command has been removed; ask sbp for details',
|
2008-08-09 11:01:20 -04:00
|
|
|
# 'img': 'the .img command has been removed; ask sbp for details',
|
2008-02-23 07:16:43 -05:00
|
|
|
'v': '.v has been replaced by .val',
|
|
|
|
'validate': '.validate has been replaced by .validate',
|
2008-08-09 11:01:20 -04:00
|
|
|
# 'rates': "moon wanter. moOOoon wanter!",
|
2008-02-29 10:36:18 -05:00
|
|
|
'web': 'the .web command has been removed; ask sbp for details',
|
2009-06-07 04:57:41 -04:00
|
|
|
'origin': ".origin hasn't been ported to my new codebase yet"
|
|
|
|
# 'gs': 'sorry, .gs no longer works'
|
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 = [
|
2008-08-09 11:01:20 -04:00
|
|
|
'cp', 'pc', 'unicode', 'compare', 'map', 'acronym',
|
|
|
|
'v', 'validate', 'thesaurus', 'web', 'mangle', 'origin',
|
|
|
|
'swhack'
|
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()
|