BlackyWhoElse / streamer.bot-actions

A collection of actions for streamer.bot coded by BlackyWerSonst
https://twitch.tv/Blackywersonst
84 stars 18 forks source link

[Games] Who's That Pokemon? #38

Closed BlackyWhoElse closed 2 years ago

BlackyWhoElse commented 2 years ago

Get pokemon via PokeApi like this:

Info:
https://pokeapi.co/api/v2/pokemon/${getRandomInt(1, 151)}/
Sprites:
https://assets.pokemon.com/assets/cms2/img/pokedex/full/{{pokeID}}.png
BlackyWhoElse commented 2 years ago

Guesses should check for all translations?

BlackyWhoElse commented 2 years ago

Added settings:

BlackyWhoElse commented 2 years ago

V1 done. Streamer Bot actions

TlM0RR+LCAAAAAAABADVVctu1DAU3VfqP7gjVWzqKg/nMeyGCgoLJERBLFAXHvt6GkjsYDudjkbz79hJ22SSKUgVILFKcs+9x+e+nO3xEUKzW9CmUHL2EkVnrUHSCtzXbNZ9UmYdbJzlq/9GaNs9HFRw75enEU+DEHAQZhQTmnJMIxHhiDAS8pxwInjH1Qb9aKDx/LIpy94Kki5L8HxWNzCw37Gy4fBGq+ptYazSG+ciaGkGPg+CX0uOLv17D620amqPfblRLwyyN9SiD+o7VC7h3ouWa7oxHxs55dZUclUt2hpMUaYka7QGaafYpG57tWtdLNz5wNlpY0D7LE5R4UUCEoU2FlmFVg2YzlR3shFT7kBmy80J6lNo6WoNAhzIF4ypptUU7Ht0DQsYoQTEHOcgMkwSCDFN5wJHkLN4HmdJGtER9RqK1U1LeD6itJvaFz8cmR8LPyJ6os+dOsnhzp/RW3cPr9fjwl76A9rqXg/7UZa0NsAHaAfuzp4Y3jDMOEQEB4LEmGTLAM8hJRiSkBABcZgl+T8Z3itLtf0/x3eBJKzRyklHSqCpVPStccNsfILAz585tCB4nMdziimNIkyE8LdMQHEWcppzOl+KNPlTQ7vX3V91uNP3N8fWPzrPbvYGoS6sqlx/D17NRjWawah9wQFZNeiqsK4xn90dNBb2CB6U3TWG5EGUh2yOYxq7xlCIcJ5mS5wQmpAlEXkUL2e/35VCtrsysVeqNQbDarVp+7NP1raejUv87jmLzZQquVrLRU+xv+OlYvR+iwZaipVUGl4p20/vvvza/12NvfAg6EMr+AAEkyDfkScDmx70fdnuBpzUwBVIU9jiFqaRq1ItaXlxn/D+yR3rIeTxKnpfyMLvutm7p6i0n7qlCoaTe3y0+wkwC/xFZggAAA==
BlackyWhoElse commented 2 years ago

Ronnie#1617:

I installed this and have a few notes for you based on the trouble I had.

In script.js, I was getting errors on line 129 for checking the length of the answer. I changed the line to if (wsdata.data.message.message.split().length == 1) { instead, and it started working perfectly.

Also, in the functions endGame and revealPokemon, having the actionId in the DoAction json was causing actions not to fire since importing gives different ids. Commenting those out and just using the action names was enough to start it working as well.

BlackyWhoElse commented 2 years ago

1403f87 Added mode selection to start-action and switched to custom call

BlackyWhoElse commented 2 years ago

ee3dd9c Fixed bug that would not allow to run poll and then direct after another

BlackyWhoElse commented 2 years ago

2c4b1f7 Updated actions for new code

BlackyWhoElse commented 2 years ago

This can be released as far as i can tell