From e9b62a5782cda4896ba9027bf961c3374b329970 Mon Sep 17 00:00:00 2001 From: Lucy Joshua Date: Fri, 10 Mar 2023 21:16:45 +0200 Subject: [PATCH] Debug --- src/BotYamPoster.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/BotYamPoster.py b/src/BotYamPoster.py index 1db3d4f..b6af37a 100644 --- a/src/BotYamPoster.py +++ b/src/BotYamPoster.py @@ -125,10 +125,12 @@ class BotYamPoster(tweepy.StreamingClient): if message['sender_id'] == self.user_id: return + print("Someone sliding in DMs.") + conn = Connector() # Get the text of the message - text = message['text'] + text = message.data['text'] # Find the URL of the tweet in the message tweet_url_regex = r'https?://twitter.com/\w+/status/(\d+)(?:\?.*)?$'