aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlas Oliva <blasoliva@gmail.com>2015-01-22 15:18:53 -0300
committerBlas Oliva <blasoliva@gmail.com>2015-01-22 15:18:53 -0300
commit4b5d5432172e17692f887c0742120f367c7ceb1e (patch)
tree294890ea644444109d1e4d9731c27363a76489bb
parentb86ae79b1b578e33597d6966c482fc0fd19a86db (diff)
downloadreebot-4b5d5432172e17692f887c0742120f367c7ceb1e.tar.gz
reebot-4b5d5432172e17692f887c0742120f367c7ceb1e.zip
Updating reebot.py
-rwxr-xr-xreebot.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/reebot.py b/reebot.py
index 7b05907..83bfb67 100755
--- a/reebot.py
+++ b/reebot.py
@@ -115,7 +115,7 @@ class rBot:
115 + " | " + feeds.feed.title 115 + " | " + feeds.feed.title
116 + " > " + entry.title 116 + " > " + entry.title
117 + " : " + entry.link ) 117 + " : " + entry.link )
118 # Update log in the database 118 # Insert link into log database
119 self.db.log.insert( { "url" : entry.link } ) 119 self.db.log.insert( { "url" : entry.link } )
120 120
121 # Send newer entries to the channel 121 # Send newer entries to the channel
@@ -123,8 +123,9 @@ class rBot:
123 msgq = msgqueue.pop() 123 msgq = msgqueue.pop()
124 for channel in channels_list: 124 for channel in channels_list:
125 self.sendmessage( channel, msgq ) 125 self.sendmessage( channel, msgq )
126 126
127 time.sleep(3) 127 time.sleep(2)
128 # Refresh interval (every X seconds)
128 threading.Timer( 60, self.feed_refresh ).start() 129 threading.Timer( 60, self.feed_refresh ).start()
129 130
130if __name__ == "__main__": 131if __name__ == "__main__":