From a58cec4ebdb29310508f4d3c247ea685718b1529 Mon Sep 17 00:00:00 2001 From: Lucy Joshua <43093984+notBscalE@users.noreply.github.com> Date: Tue, 31 Jan 2023 10:45:16 +0200 Subject: [PATCH] Bugfix? --- src/BotYamPoster.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/BotYamPoster.py b/src/BotYamPoster.py index 76bec55..722d7b3 100644 --- a/src/BotYamPoster.py +++ b/src/BotYamPoster.py @@ -17,9 +17,10 @@ def post_reply(conn, victim_bank, tweet, words, reply_text_bank, postcounter): text=reply_text, in_reply_to_tweet_id=tweet["id"] ) + postcounter = postcounter + 1 response_data = f"RESPONDING: {res.data['text']}" print(response_data) - return (postcounter + 1) + return postcounter class BotYamPoster(tweepy.StreamingClient): @@ -27,7 +28,7 @@ class BotYamPoster(tweepy.StreamingClient): def on_tweet(self, tweet): # Make it easy on Yashar - postcounter = 0 + postcounter = int(0) if (not "@FromBotYam" in tweet.data['text'] and random.randint(0,3) != 0): return