mylife html changed again

master
paul 2017-05-28 00:43:30 -04:00
parent 7c67f09074
commit a000881c2b
1 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,8 @@ def fml(phenny, input):
raise GrumbleError("I tried to use .fml, but it was broken. FML") raise GrumbleError("I tried to use .fml, but it was broken. FML")
doc = lxml.html.fromstring(req) doc = lxml.html.fromstring(req)
quote = doc.find_class('block')[1][0].text_content() quote = doc.find_class('block')[0].text_content()
quote = quote.strip()
phenny.say(quote) phenny.say(quote)
fml.commands = ['fml'] fml.commands = ['fml']