Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UpdateTitleStats broken #3573

Closed
smfbrooks opened this issue Aug 11, 2016 · 3 comments
Closed

UpdateTitleStats broken #3573

smfbrooks opened this issue Aug 11, 2016 · 3 comments

Comments

@smfbrooks
Copy link

Expected Behavior

Print Stats

Actual Behavior

Traceback (most recent call last):
  File "pokecli.py", line 530, in <module>
    main()
  File "pokecli.py", line 83, in main
    tree = TreeConfigBuilder(bot, config.raw_tasks).build()
  File "c:\dir\dir\dir\PokemonGO-Bot-dev\PokemonGo-Bot\pokemongo_bot\tree_config_builder.py", line 43, in build
    worker = self._get_worker_by_name(task_type)
  File "c:\dir\dir\dir\PokemonGO-Bot-dev\PokemonGo-Bot\pokemongo_bot\tree_config_builder.py", line 21, in _get_worker_by_name
    raise ConfigException('No worker named {} defined'.format(name))
pokemongo_bot.tree_config_builder.ConfigException: No worker named UpdateTitleStats defined

Your config.json (remove your credentials and any other private info)

      {
        "type": "UpdateTitleStats",
        "config": {
           "min_interval": 60,
           "stats": ["login", "uptime", "km_walked", "level_stats", "xp_earned", "xp_per_hour"]
       }
      },

Steps to Reproduce

Use above task

Other Information

OS: Windows 10
Git Commit: 350148e
Python Version: 2.7.12

@adamvc21
Copy link

adamvc21 commented Aug 11, 2016

This is mine and after trying to get it to work for a while I cannot. It's only this. Latest Commit, Window 10

      {
        "type": "UpdateLiveStats",
        "config": {
          "min_interval": 5,
          "stats": ["uptime", "km_walked", "level_stats", "xp_earned", "xp_per_hour", "stops_visited", "pokeballs_thrown", "stardust_earned", "pokemon_stats", "highest_cp_pokemon", "most_perfect_pokemon"],
          "terminal_log": true,
          "terminal_title": true
        }
      },

@denike
Copy link

denike commented Aug 11, 2016

It's UpdateLiveStats now.

@adamvc21
Copy link

That does not work for me. Returns

Traceback (most recent call last):
  File "pokecli.py", line 521, in <module>
    main()
  File "pokecli.py", line 82, in main
    tree = TreeConfigBuilder(bot, config.raw_tasks).build()
  File "C:\PokemonGo-Bot-master\pokemongo_bot\tree_config_builder.py", line 43, in build
    worker = self._get_worker_by_name(task_type)
  File "C:\PokemonGo-Bot-master\pokemongo_bot\tree_config_builder.py", line 21, in _get_worker_by_name
    raise ConfigException('No worker named {} defined'.format(name))
pokemongo_bot.tree_config_builder.ConfigException: No worker named UpdateLiveStats defined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants