tehp / OpenPoGoBot

A PokemonGo Python bot - NO LONGER MAINTAINED
MIT License
123 stars 53 forks source link

Using 0 count pokeballs leading to potential ban #359

Open uksparky opened 8 years ago

uksparky commented 8 years ago

Expected Behavior

Should not use pokeballs with a zero count, use a better available ball or give up.

Actual Behavior

Tries to use pokeball that does not exist, leads to error and warning about being banned. Log below:

[2016-09-01 23:24:12] [Catch] A wild Drowzee appeared! [CP 620] [Potential 0.44] [2016-09-01 23:24:20] [Catch] Using Great Ball... (0 left!) [2016-09-01 23:24:33] [Catch] Using Great Ball... (0 left!) Traceback (most recent call last): File "pokecli.py", line 88, in main() File "pokecli.py", line 80, in main bot.run() File "/Users/mick/Documents/OpenPoGoBot/pokemongo_bot/bot.py", line 140, in run self.stepper.current_lng File "/Users/mick/Documents/OpenPoGoBot/pokemongo_bot/bot.py", line 160, in work_on_cells self.fire("pokemon_found", encounters=encounters) File "/Users/mick/Documents/OpenPoGoBot/pokemongo_bot/bot.py", line 166, in fire self.event_manager.fire_with_context(event, self, _args, _kwargs) File "/Users/mick/Documents/OpenPoGoBot/pokemongo_bot/event_manager.py", line 118, in fire_with_context return self.fire(event_name, _args, _kwargs) File "/Users/mick/Documents/OpenPoGoBot/pokemongo_bot/event_manager.py", line 112, in fire return self.events[event_name].fire(_args, *_kwargs) File "/Users/mick/Documents/OpenPoGoBot/pokemongo_bot/event_manager.py", line 68, in fire return_dict = listener(listener_args) File "./plugins/catch_pokemon/init.py", line 98, in pokemon_found should_continue_throwing = self.throw_pokeball(bot, encounter_id, pokeball, spawn_point_id, pokemon, pos) File "./plugins/catch_pokemon/init.py", line 117, in throw_pokeball response = bot.api_wrapper.call() File "/Users/mick/Documents/OpenPoGoBot/api/init**.py", line 132, in call raise AccountBannedException() api.exceptions.AccountBannedException: [API] Status code 3 received. This may mean that your account is permanently banned. See https://www.reddit.com/r/pokemongodev/comments/4xkqmq/new_ban_types_and_their_causes/ for details.

Steps to Reproduce

Just usual usage when no great balls have been found in pokestops leading to exhaustion.

Other Information

OS: Mac Git Commit: