This commit is contained in:
Lucy Joshua 2023-01-31 11:00:05 +02:00 committed by GitHub
parent a314903f06
commit 0bf864d3c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,7 +71,7 @@ class BotYamPoster(tweepy.StreamingClient):
reply_bank['special_gags']['misadot']['reply'], reply_bank['special_gags']['misadot']['reply'],
postcounter) postcounter)
if (postcounter == 0): if (postcounter == 0 and "@FromBotYam" in tweet.data['text']):
print("Post counter for this tweet: 0! Posting tilt.") 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']): 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']):