summaryrefslogtreecommitdiffstats
path: root/opt
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2013-07-25 19:26:52 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2015-12-03 03:29:37 +0100
commitf3b86ed2d5bce85b3b9c27eb949cd88cf7d526bc (patch)
treea187725f5ec7f1c67d2b9a471b4000ad40a16b04 /opt
parent4b905606692a2f147946505abe6ade1c241d1000 (diff)
downloadbot-f3b86ed2d5bce85b3b9c27eb949cd88cf7d526bc.tar.gz
bot-f3b86ed2d5bce85b3b9c27eb949cd88cf7d526bc.tar.bz2
bot-f3b86ed2d5bce85b3b9c27eb949cd88cf7d526bc.zip
fix indentation and trailing whitespaces
Diffstat (limited to 'opt')
-rwxr-xr-xopt/freenode.py50
1 files changed, 25 insertions, 25 deletions
diff --git a/opt/freenode.py b/opt/freenode.py
index 0c08cf2..9d8a7f3 100755
--- a/opt/freenode.py
+++ b/opt/freenode.py
@@ -7,32 +7,32 @@ Licensed under the Eiffel Forum License 2.
http://inamidst.com/phenny/
"""
-def replaced(phenny, input):
- command = input.group(1)
- responses = {
- 'cp': '.cp has been replaced by .u',
- 'pc': '.pc has been replaced by .u',
- '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',
- # '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"
- # 'gs': 'sorry, .gs no longer works'
- }
- try: response = responses[command]
- except KeyError: return
- else: phenny.reply(response)
+def replaced(phenny, input):
+ command = input.group(1)
+ responses = {
+ 'cp': '.cp has been replaced by .u',
+ 'pc': '.pc has been replaced by .u',
+ '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',
+ # '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"
+ # 'gs': 'sorry, .gs no longer works'
+ }
+ try: response = responses[command]
+ except KeyError: return
+ else: phenny.reply(response)
replaced.commands = [
- 'cp', 'pc', 'unicode', 'compare', 'map', 'acronym',
- 'v', 'validate', 'thesaurus', 'web', 'mangle', 'origin',
- 'swhack'
+ 'cp', 'pc', 'unicode', 'compare', 'map', 'acronym',
+ 'v', 'validate', 'thesaurus', 'web', 'mangle', 'origin',
+ 'swhack'
]
replaced.priority = 'low'
-if __name__ == '__main__':
- print __doc__.strip()
+if __name__ == '__main__':
+ print __doc__.strip()