mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Fixed Http.deepthought to queue thoughts and to import structures for such queueing.
This commit is contained in:
parent
f0c32e039d
commit
4be5d42dc5
@ -44,6 +44,7 @@ import utils
|
||||
import debug
|
||||
import privmsgs
|
||||
import callbacks
|
||||
import structures
|
||||
|
||||
class FreshmeatException(Exception):
|
||||
pass
|
||||
@ -68,6 +69,7 @@ class Http(callbacks.Privmsg):
|
||||
s = fd.read()
|
||||
thought = s.split('<br>')[2]
|
||||
thought = ' '.join(thought.split())
|
||||
self.deepthoughtq.enqueue(thought)
|
||||
irc.reply(msg, thought)
|
||||
|
||||
_titleRe = re.compile(r'<title>(.*)</title>')
|
||||
|
Loading…
Reference in New Issue
Block a user