Another method for the madness
This commit is contained in:
parent
fb1efa988d
commit
c3c64b6965
1 changed files with 9 additions and 1 deletions
|
|
@ -74,7 +74,15 @@ class BotYamPoster(tweepy.StreamingClient):
|
||||||
if (postcounter == 0 and "@FromBotYam" in tweet.data['text']):
|
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']):
|
||||||
|
postcounter = post_reply(
|
||||||
|
conn,
|
||||||
|
reply_bank['victims'],
|
||||||
|
tweet, reply_bank['special_gags']['tilt']['keywords'],
|
||||||
|
reply_bank['special_gags']['tilt']['reply'],
|
||||||
|
postcounter)
|
||||||
|
|
||||||
|
if (postcounter == 0 and "@FromBotYam" in tweet.data['text']):
|
||||||
postcounter = post_reply(
|
postcounter = post_reply(
|
||||||
conn,
|
conn,
|
||||||
reply_bank['victims'],
|
reply_bank['victims'],
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue