Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add spaces between claps and make wait time 42.0 secs #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
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