Monocle icon indicating copy to clipboard operation
Monocle copied to clipboard

Send Unown form notification

Open RobTwoThree opened this issue 7 years ago • 5 comments

Much like gender, pull Unown form and send to notifications. Does not insert form into database and therefore does not display on web.py. Works with PokeAlarm. Successfully tested with PokeAlarm.

RobTwoThree avatar May 03 '17 03:05 RobTwoThree

Unown forms is availible on WildPokemon. You can do that without encounter.

j16sdiz avatar Jun 05 '17 10:06 j16sdiz

Updated to check for Unown "form" without requiring encounter and send to webhook. May consider closing this PR since PR #284 does the same thing. The difference is this only sends "form" for Unown. Difficult to test since Unown are ultra rare.

RobTwoThree avatar Jun 08 '17 22:06 RobTwoThree

@j16sdiz This may be true, however, the way form is being passed, it still requires it to be encountered. I tried it without encounter and Unown form wasn't being passed to PokeAlarm like it used to.

RobTwoThree avatar Jul 19 '17 05:07 RobTwoThree

starnge, i have been running without encounter for a month and still have forms. I have only changed normalize_pokemon and the notifcation.py

j16sdiz avatar Jul 19 '17 10:07 j16sdiz

@j16sdiz I believe its because there's a bug with ENCOUNTER = None, 'some', 'notify'. When I set ENCOUNTER = 'none' but still have notifications, it doesn't send form to webhook because all encounters are turned off. So I tried ENCOUNTER = 'some' and it still wouldn't send form. Only when I have ENCOUNTER = 'notify' does it send form and all encounter data on all in ALWAYS_NOTIFY_IDS. So we were left with all or none. I was able to patch the ENCOUNTER = 'some' bug and from there I was able to determine that form (and all encounter data) is only sent to webhook during encounter code because only normalized pokemon are sent to webhook which includes the form attribute. Its a bigger bug with what is being sent to webhook, but I think the patch fixes it for now.

RobTwoThree avatar Jul 19 '17 15:07 RobTwoThree