From da739a760e24597dbbcaa820620c2b8c8dc2647d Mon Sep 17 00:00:00 2001 From: mutantmonkey Date: Mon, 14 May 2012 16:49:41 -0400 Subject: [PATCH] DRY in rule34 and urbandit for usage --- modules/rule34.py | 2 +- modules/urbandict.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/rule34.py b/modules/rule34.py index 619bfdb..94bca2f 100644 --- a/modules/rule34.py +++ b/modules/rule34.py @@ -14,7 +14,7 @@ def rule34(phenny, input): q = input.group(2) if not q: - phenny.say(".rule34 - Rule 34: If it exists there is porn of it.") + phenny.say(rule34.__doc__.strip()) return try: diff --git a/modules/urbandict.py b/modules/urbandict.py index b74c0e6..d4c7486 100644 --- a/modules/urbandict.py +++ b/modules/urbandict.py @@ -14,7 +14,7 @@ def urbandict(phenny, input): word = input.group(2) if not word: - phenny.say(".urb - Search Urban Dictionary for a definition.") + phenny.say(urbandict.__doc__.strip()) return try: