PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

Telegram task no longer sends updates on caught pokemon since last update

Open dogeatdog opened this issue 10 years ago • 2 comments

Expected Behavior

Telegram sending me updates on caught pokemon.

Actual Behavior

Telegram isn't sending me updates on caught pokemon anymore. It does send me updates on when an egg is hatched. I can also send /info to the bot and it responds nicely.

{ "type": "TelegramTask", "config": { "enabled": true, "master": [my id], "// old syntax, still supported: alert_catch": ["all"], "// new syntax:": {}, "alert_catch": { "all": {"operator": "and", "cp": 100, "iv": 0.2} }, "password": "mypassword" } }

Output when issue occurred

[2016-09-16 12:26:59] [PokemonCatchWorker] [INFO] A wild Pidgey appeared! (CP: 279) (NCP: 0.41) (Potential 0.31) (A/D/S 1/0/13) [2016-09-16 12:27:07] [PokemonCatchWorker] [INFO] Nice Curveball throw! Used Pokeball, with chance 35.29 (9 left) [2016-09-16 12:27:08] [PokemonCatchWorker] [INFO] Captured Pidgey! [CP 279] [NCP 0.41] [Potential 0.31] 1/0/13 [+120 exp] [+100 stardust] [2016-09-16 12:27:08] [PokemonCatchWorker] [INFO] You now have 8 Pidgey candy! [2016-09-16 12:27:13] [TransferPokemon] [INFO] Keeping best 1 Pidgey, based on cp

.. when an egg hatches it does work correctly (don't mind the warning) :

[2016-09-16 11:32:37] [IncubateEggs] [INFO] Egg hatched with a Poliwag (CP 427 - NCP 0.54 - IV 13/11/10 0.76), 500 exp, 846 stardust and 11 candies. /home/dogeatdog/PokemonGo-Bot/local/lib/python2.7/site-packages/urllib3/util/ssl_.py:132: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecurePlatformWarning

Steps to Reproduce

Nothing special, just run it with the telegram task config with commit a8ee3125.

Other Information

OS: Ubuntu

Branch: master

Git Commit: a8ee3125

Did something change with the configuration of the telegram task or is it just broken in this commit ?

dogeatdog avatar Sep 16 '16 10:09 dogeatdog

you can now subscribe to events. /sub all - will give you all output /sub pokemon_caught - will subscribe to the info you want

/events will show you a list of possible subscriptions.

javajohnHub avatar Sep 16 '16 15:09 javajohnHub

oh wow.. how did I miss that .. Sorry !

dogeatdog avatar Sep 16 '16 15:09 dogeatdog