From b15c8240f5e35e89ce3e09e8d4e8463a067166d4 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Sat, 28 May 2011 05:56:48 +0000 Subject: Fixed the problems --- JKTwitterBot/src/thebot.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/JKTwitterBot/src/thebot.py b/JKTwitterBot/src/thebot.py index 69a543f..3a952d9 100644 --- a/JKTwitterBot/src/thebot.py +++ b/JKTwitterBot/src/thebot.py @@ -27,16 +27,17 @@ CONSUMER_SECRET='MEYTOS97VvlHX7K1rwHPEqVpTSqZ71HtvoK4sVuYk' # instead of tweeted. TEST_MODE = True -DEFAULT_USERNAME = 'tcss435test'#'MoreJennifer' +DEFAULT_USERNAME = 'morejennifer' DEFAULT_AUTH_FILENAME = '.twitter_oauth' DEFAULT_LASTID_FILENAME = '.twitter_lastid' Response_File = 'Response.txt' public_Status_update_File = 'Status_update.txt' questions_status_update_File = 'question_status.txt' make_Friends_File = 'friends.txt' -count = 0 +count = 33 response_count = 0 -question_count = 0 +question_count = 32 +lastid = '' def status_update(outgoing_text): if not TEST_MODE: @@ -62,7 +63,8 @@ def follow_user(user): print '====> (TEST MODE) Following =', user def reply_to_tweets(): - lastid = '' + global lastid + global response_count results = reader.search(q=username, since_id=lastid)['results'] for result in reversed(results): asker = result['from_user'] -- cgit v1.2.3