diff options
author | Sean B. Palmer <http://inamidst.com/sbp/> | 2008-02-21 12:06:33 +0000 |
---|---|---|
committer | Sean B. Palmer <http://inamidst.com/sbp/> | 2008-02-21 12:06:33 +0000 |
commit | 7931fab14599b739c18c8f1ebcc24b75688dbc09 (patch) | |
tree | bf4df9757f10c155e3b6f78aed48f15884ebbbe6 /opt | |
download | bot-7931fab14599b739c18c8f1ebcc24b75688dbc09.tar.gz bot-7931fab14599b739c18c8f1ebcc24b75688dbc09.tar.bz2 bot-7931fab14599b739c18c8f1ebcc24b75688dbc09.zip |
Phenny2, now being tested on Freenode as the main phenny.
Diffstat (limited to 'opt')
-rw-r--r-- | opt/__init__.py | 0 | ||||
-rw-r--r-- | opt/freenode.py | 22 |
2 files changed, 22 insertions, 0 deletions
diff --git a/opt/__init__.py b/opt/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/opt/__init__.py diff --git a/opt/freenode.py b/opt/freenode.py new file mode 100644 index 0000000..50e6b5d --- /dev/null +++ b/opt/freenode.py @@ -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() |