Skip to content
This repository was archived by the owner on Oct 6, 2019. It is now read-only.
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
4 changes: 2 additions & 2 deletions twitterbot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def _check_followers(self):
try:
self.state['new_followers'] = [f_id for f_id in self.api.followers_ids(self.id) if f_id not in self.state['followers']]

self.config['last_follow_check'] = time.time()
self.state['last_follow_check'] = time.time()

except tweepy.TweepError as e:
self._log_tweepy_error('Can\'t update followers', e)
Expand Down Expand Up @@ -373,7 +373,7 @@ def run(self):

# check followers every 15 minutes
#if self.autofollow and (time.time() - self.last_follow_check) > (15 * 60):
if self.state['last_follow_check'] > (15 * 60):
if (time.time() - self.state['last_follow_check']) > (15 * 60):
self._check_followers()
self._handle_followers()

Expand Down