Skip to content

Commit c5accfa

Browse files
refactoring: blackification
1 parent c105032 commit c5accfa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

twitter-bot.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import tweepy, time, sys
22
import config
33

4+
45
def twitter_bot():
56
# file from which to read tweets in
67
argfile = str(sys.argv[1])
@@ -17,12 +18,12 @@ def twitter_bot():
1718
with open(argfile, "r") as file:
1819
content = file.read()
1920
tweets = content.split("§§§")
20-
21+
2122
# publish the tweets
2223
for tweet in tweets:
2324
tweet = tweet.strip()
2425
api.update_status(tweet)
25-
time.sleep(seconds) # update status every 15 minutes
26+
time.sleep(seconds) # update status every 15 minutes
2627

2728

2829
if __name__ == "__main__":

0 commit comments

Comments
 (0)