Reformatted drama.py

This commit is contained in:
Luke Rogers 2011-11-21 01:09:33 +13:00
parent e8587da2e5
commit 881c64f75d
1 changed files with 1 additions and 5 deletions

View File

@ -1,6 +1,3 @@
'''Searches Encyclopedia Dramatica and returns the first paragraph of the
article'''
from util import hook, http
api_url = "http://encyclopediadramatica.ch/api.php?action=opensearch"
@ -10,8 +7,7 @@ ed_url = "http://encyclopediadramatica.ch/"
@hook.command('ed')
@hook.command
def drama(inp):
'''.drama <phrase> -- gets first paragraph of Encyclopedia Dramatica ''' \
'''article on <phrase>'''
".drama <phrase> -- gets first paragraph of Encyclopedia Dramatica article on <phrase>"
j = http.get_json(api_url, search=inp)
if not j[1]: