From 2338e394aa7288fde2f4bb57b9f49eae5de86d20 Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Sun, 24 Jun 2018 15:07:16 -0500 Subject: [PATCH] Add a delay so we aren't spamming the channel. --- lugito | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lugito b/lugito index 4f316b1..7921178 100755 --- a/lugito +++ b/lugito @@ -9,6 +9,7 @@ from flask import Flask, request from pprint import pprint from hashlib import sha256 from phabricator import Phabricator +from time import sleep website = "https://phab.lubuntu.me" @@ -78,6 +79,8 @@ def ircmessage(objectstr, who, body, link): message = message + "\x032" + link + "\x03" # Make sure we can debug this if it goes haywire print(message) + # Sleep for a second, so when we have a bunch of messages we have a buffer + sleep(1) # Aaaaand, send it off! sendnotice(message)