mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 14:14:37 +01:00
Slightly changed the formatting of the output.
This commit is contained in:
parent
5ec9df1a2d
commit
d9b17f5a45
@ -184,7 +184,7 @@ class Http(callbacks.Privmsg):
|
|||||||
html = urllib2.urlopen(url).read()
|
html = urllib2.urlopen(url).read()
|
||||||
city, state = self._cityregex.search(html).groups()
|
city, state = self._cityregex.search(html).groups()
|
||||||
temp = self._tempregex.search(html).group(1)
|
temp = self._tempregex.search(html).group(1)
|
||||||
conds = self._condregex.search(html).group(1)
|
conds = self._condregex.search(html).group(1).strip()
|
||||||
irc.reply(msg, 'The current temperature in %s, %s is %dF with %s\
|
irc.reply(msg, 'The current temperature in %s, %s is %dF with %s\
|
||||||
conditions' % (city, state, int(temp), conds))
|
conditions' % (city, state, int(temp), conds))
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
|
Loading…
Reference in New Issue
Block a user