Don't self-reply. ever.
This commit is contained in:
parent
4398e09098
commit
4d69d172f2
1 changed files with 5 additions and 2 deletions
5
main.py
5
main.py
|
|
@ -46,6 +46,10 @@ class BotYamPoster(tweepy.StreamingClient):
|
||||||
if (tweet.data['author_id'] == "1533213104" and random.randint(0,3) != 0):
|
if (tweet.data['author_id'] == "1533213104" and random.randint(0,3) != 0):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# Don't use bot for own replies
|
||||||
|
if tweet.data['author_id'] == "1604848395805401092":
|
||||||
|
return
|
||||||
|
|
||||||
api = init_api()
|
api = init_api()
|
||||||
# Debug
|
# Debug
|
||||||
tweet_data = f"NEW TWEET from @{api.get_user(id=tweet.data['author_id']).data['username']}: {tweet.data['text']}"
|
tweet_data = f"NEW TWEET from @{api.get_user(id=tweet.data['author_id']).data['username']}: {tweet.data['text']}"
|
||||||
|
|
@ -77,7 +81,6 @@ class BotYamPoster(tweepy.StreamingClient):
|
||||||
batyam_folks = ['134339937', '1533213104']
|
batyam_folks = ['134339937', '1533213104']
|
||||||
|
|
||||||
# Replies
|
# Replies
|
||||||
if not tweet.data['author_id'] == "1604848395805401092":
|
|
||||||
post_reply(api, tweet, reply_words, reply_text_reply)
|
post_reply(api, tweet, reply_words, reply_text_reply)
|
||||||
post_reply(api, tweet, gebels_words, reply_text_gebels)
|
post_reply(api, tweet, gebels_words, reply_text_gebels)
|
||||||
post_reply(api, tweet, police_words, reply_text_police)
|
post_reply(api, tweet, police_words, reply_text_police)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue