From 26ba997e8e1db6122a26bad95aa8003de2852d91 Mon Sep 17 00:00:00 2001 From: Hammy Date: Sat, 13 Feb 2021 20:40:39 +0000 Subject: [PATCH] Refactor to tweet randomly with images --- bot/winston.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bot/winston.py b/bot/winston.py index def34da..033b9c1 100644 --- a/bot/winston.py +++ b/bot/winston.py @@ -38,7 +38,8 @@ class Winston: self.potential_tweets_with_images = [ ["Are You With Me? @PlayOverwatch", "winston_grin.jpg"], ["You won't like me when I'm angry.", "winston_angry.jpg"], - ["Look out world! I'm on a rampage!", "winston_primal_rage.jpg"] + ["Look out world! I'm on a rampage!", "winston_primal_rage.jpg"], + ["Holy Shit.", "overwatch_meme.jpg"] ] def send_tweet(self, tweet_text): @@ -50,7 +51,7 @@ class Winston: def send_random_tweet(self): """Tweet something random from potential tweets""" - result = True + result = False if result: random_tweet = random.choice(self.potential_tweets) self.bot.update_status(status=random_tweet)