Skip to content

Commit bb68d2f

Browse files
author
Dave Bell
authored
Update loremricksum.py
1 parent 2bb1556 commit bb68d2f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

loremricksum.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,16 @@ class BotStreamer(tweepy.StreamListener):
3636
def on_status(self, status):
3737
username = status.user.screen_name
3838
status_id = status.id
39-
if 'in_reply_to_status' in data:
4039
try:
4140
favorite(status_id)
4241
tweetReply(username, status_id)
4342
except tweepy.TweepError as e:
4443
print((e.reason))
4544
tweetReply(username, status_id)
46-
else:
47-
favorite(status_id)
45+
46+
def on_data(self, data):
47+
if not 'in_reply_to_status' in data:
48+
favorite(status.id)
4849

4950
def on_limit(self, status):
5051
print("Rate Limit Exceeded, Sleep for 15 Mins")

0 commit comments

Comments
 (0)