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+)(?:\?.*)?$'