Skip to content

Commit

Permalink
Update bot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
punkyoon authored Apr 29, 2017
1 parent 690a5b7 commit d7fd26e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
auth.set_access_token(ACCESS_TOKEN, ACCESS_SECRET)
api = tweepy.API(auth)

# Loading no-jam-gag
f = open('no-jam-gag.txt', 'r')
items = f.readlines()
f.close()

while True:
# Getting random no-jam-gag
item = random.choice(items)
try:
api.update_status(item)
Expand Down

0 comments on commit d7fd26e

Please sign in to comment.