From ff1072e243513917b87dfe3af1e4a41ee9d028bb Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Thu, 11 Nov 2021 10:34:02 +0000 Subject: [PATCH] API deprecation of api.me() --- interaction/script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interaction/script.py b/interaction/script.py index 907902e..500e441 100644 --- a/interaction/script.py +++ b/interaction/script.py @@ -42,7 +42,7 @@ def interactions(): return for tweet in reversed(tweets): if re.search('what is.*if not.*persevering',tweet.text.lower()): - if not tweet.text.lower().startswith('rt') and tweet.user != api.me(): + if not tweet.text.lower().startswith('rt') and tweet.user != api.verify_credentials(): print(f'Tweet {tweet.text} by @{tweet.author.screen_name}', flush = True) t = api.get_status(tweet.id) if not t.favorited: