Skip to content

Commit

Permalink
renamed worker to match new naming scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
reddivision committed Jul 30, 2016
1 parent 7c6f6fc commit dcd1856
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from pokemongo_bot.human_behaviour import sleep
from utils import nickname_pokemon

class NicknameAllWorker(object):
class NicknameAll(object):
def __init__(self,bot):
self.bot = bot

Expand All @@ -15,7 +15,7 @@ def work(self):
except KeyError:
pass
else:
template = self.bot.config.nickname_template
template = self.bot.config.nicknames_nickname_template
logger.log("Nicknaming all pokemon in inventory with template {}".format(template),'yellow')
logger.log("NOTE: Please be patient, this can take several minutes depending on the number of pokemon in inventory.",'yellow')
pokemon_data = self._get_inventory_pokemon(inventory)
Expand All @@ -25,7 +25,7 @@ def work(self):
logger.log("Finished renaming all pokemon.",'green')

def _should_run(self):
if not self.bot.config.nickname_template:
if not self.bot.config.nicknames_nickname_template:
return False

if self.bot.tick_count > 1:
Expand Down

0 comments on commit dcd1856

Please sign in to comment.