Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def clap(tweet,user):
clap_tweet = first_word
words.pop(0)
for w in words:
clap_tweet = clap_tweet + clap_emoji + w
clap_tweet = clap_tweet + " " + clap_emoji + " " + w
clap_tweet = clap_tweet + clap_emoji
if len(clap_tweet) < 141:
if clap_tweet[0] == '@':
Expand Down Expand Up @@ -88,11 +88,11 @@ def process(i, user):
except Exception as e:
print str(e)
print 'some sort of drama when listening'
sleep(420)
sleep(42.0)
pass
if len(mentions) < 1 and len(dms) < 1:
sleep(420)
print 'no new mentions, taking a 420 second break'
if len(mentions) < 1:
sleep(42.0)
print 'no new mentions, taking a 42.0 second break'
else:
for i in mentions:
if i.user.screen_name <> 'ClapBot':
Expand Down