From 25dc2ceead3692b80168c74badaef2226bb67d76 Mon Sep 17 00:00:00 2001 From: Tom Meagher Date: Mon, 28 Oct 2013 13:55:54 -0400 Subject: [PATCH] less frequent shouting --- ebooks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ebooks.py b/ebooks.py index 701833f..e04d0f0 100644 --- a/ebooks.py +++ b/ebooks.py @@ -69,8 +69,8 @@ if __name__=="__main__": #if a tweet is very short, this will randomly add a second sentence to it. if ebook_tweet != None and len(ebook_tweet) < 40: - rando = random.randint(0,7) - if rando == 0: + rando = random.randint(0,10) + if rando == 0 or rando == 7: print "Short tweet. Adding another sentence randomly" newer_tweet = mine.generate_sentence() if newer_tweet != None: