From a314903f06553cb5a8240e2f9ce39f8b57be14a6 Mon Sep 17 00:00:00 2001 From: Lucy Joshua <43093984+notBscalE@users.noreply.github.com> Date: Tue, 31 Jan 2023 10:57:48 +0200 Subject: [PATCH] Tilt debugging --- src/BotYamPoster.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/BotYamPoster.py b/src/BotYamPoster.py index 722d7b3..baae900 100644 --- a/src/BotYamPoster.py +++ b/src/BotYamPoster.py @@ -70,7 +70,10 @@ class BotYamPoster(tweepy.StreamingClient): reply_bank['special_gags']['misadot']['keywords'], reply_bank['special_gags']['misadot']['reply'], postcounter) - + + if (postcounter == 0): + print("Post counter for this tweet: 0! Posting tilt.") + if any(tilter in tweet.data['text'] for tilter in reply_bank['special_gags']['tilt']['keywords']) or (postcounter == 0 and "@FromBotYam" in tweet.data['text']): postcounter = post_reply( conn,