We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bb1556 commit bb68d2fCopy full SHA for bb68d2f
loremricksum.py
@@ -36,15 +36,16 @@ class BotStreamer(tweepy.StreamListener):
36
def on_status(self, status):
37
username = status.user.screen_name
38
status_id = status.id
39
- if 'in_reply_to_status' in data:
40
try:
41
favorite(status_id)
42
tweetReply(username, status_id)
43
except tweepy.TweepError as e:
44
print((e.reason))
45
46
- else:
47
- favorite(status_id)
+
+ def on_data(self, data):
+ if not 'in_reply_to_status' in data:
48
+ favorite(status.id)
49
50
def on_limit(self, status):
51
print("Rate Limit Exceeded, Sleep for 15 Mins")
0 commit comments