From eabf26ff1f3c82861747722d5a2b344d54cb5b71 Mon Sep 17 00:00:00 2001
From: Sebastian Gehaxelt <github@gehaxelt.in>
Date: Fri, 13 May 2016 10:03:46 +0200
Subject: [PATCH] Increased send_msg timeout

---
 bot.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/bot.py b/bot.py
index c79e6b3..23681f5 100644
--- a/bot.py
+++ b/bot.py
@@ -108,13 +108,12 @@ class IRCBot(irc.client.SimpleIRCClient):
                 # Split lines that are longer than 510 characters into multiple messages.
                 for sub_line in re.findall('.{1,510}', line):
                     self.connection.privmsg(target, sub_line)
-                    time.sleep(0.3) # Don't flood the target
+                    time.sleep(1) # Don't flood the target
         except Exception as e:
             print e
 
     def post_news(self, feed_name, title, url, date):
         """Posts a new announcement to the channel"""
-        time.sleep(0.5) # Don't flood the channel
         try:
             msg = feed_name + ": " + title + ", " + url + ", " + date
             self.send_msg(self.__config.CHANNEL, msg)
-- 
GitLab