diff options
| author | Jesse Morgan <jesse@jesterpm.net> | 2011-05-28 05:56:48 +0000 | 
|---|---|---|
| committer | Jesse Morgan <jesse@jesterpm.net> | 2011-05-28 05:56:48 +0000 | 
| commit | b15c8240f5e35e89ce3e09e8d4e8463a067166d4 (patch) | |
| tree | 8d8166db400b3c2453759ca123df00195b1c4c1c | |
| parent | f9bed46b993ca08a9e8e01f903f4f6ae32d2b179 (diff) | |
| -rw-r--r-- | JKTwitterBot/src/thebot.py | 10 | 
1 files 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']
 | 
