@@ -0,0 +1,1600 @@
+import tweepy%0Aimport sys%0Aimport os%0Afrom webbrowser import open as site  # For the auth token%0Aimport settings%0A%0AkeysPath = %22keys.txt%22%0Aif len(sys.argv) == 1:%0A    print(%22Arguments required!%22)%0A    sys.exit()%0A%0A%0A%0Aquery = input(%22enter the test%22)%0A%0Aauth = tweepy.OAuthHandler(settings.API_KEY, settings.API_SECRET)%0A%0Aauth.secure = True%0Aauth.set_access_token(settings.ACCESS_TOKEN, settings.ACCESS_TOKEN_SECRET)%0A%0A# %0A# Construct the API instance%0Aapi = tweepy.API(auth)%0A%0AtweetID = api.update_status(%22Can you help me out with this query %22 + str(query)).id%0A%0A%0Aclass ReplyListener(tweepy.StreamListener):%0A%0A    def on_status(self, status):%0A        # There is a status tweeted tagging the user%0A%0A        if status.in_reply_to_status_id == tweetID:%0A            # There was a reply to the  tweet%0A            parsedAnswer = %22%22.join(status.text.split(%22 %22)%5B1:%5D)%0A%0A          %0A            print(parsedAnswer)  %0A            api.update_status(%0A                %22@%22 + status.author.screen_name + %22 Awesome! Thanks!%22,%0A                in_reply_to_status_id=status.id)%0A            return False%0A            %0A        else:%0A            # They did not reply to the tweet%0A            return True%0A%0A    def on_error(self, statusCode):%0A        # There was a listener error%0A%0A        print(%22There was a listener error with the code%22, statusCode)%0A        return True%0A%0A    def on_timeout(self):%0A        # There was a listener timeout%0A%0A        print(%22There was a listener timeout%22)%0A        return True%0A%0Alistener = tweepy.streaming.Stream(auth, ReplyListener())%0A# Listen for a response to the user%0Alistener.filter(track=%5B%22@%22 + api.me().screen_name%5D)%0A

Create main.py