Shiny pokemon counter + name

I know this will be similar to adding a wins + kills command which i’ve researched on this forum, but I cant quite figure out how to modify the commands to suit my needs. In theory I’d like the command to be !shiny which would then have the number of shinies i’ve caught plus their names. So !addshiny sylveon would add to the total number and then include sylveon in the list. I’m sure it’s a simple edit of an existing command, I just cant figure it out. Any help would be greatly appreciated. Thanks for your

Hey @mala!

You can’t have Nightbot store data, when you input something it’s temporary, and if you edit another command with that data it overwrites the former content, so what you’re looking for isn’t natively possible.
You can however use the Quote API (please be aware there are restrictions), if you’re just looking into having a total, and then just various names with no details, you can use the $(count) variable along with the quote list, but if you’re looking for details in your output, I suggest adapting this command:

The following topic might as well interest you:

Yes, thank you @Emily! I’m interested in the total + various names with no detail. I cant seem to figure out which API commands i need for that. I read through your post to zombihuntress about using the quote system API and the public and private tokens, but i’m not sure if those commands are specific for his/her needs… ie gulag, wins/losses, etc. So i’m sure i need to use the count variable and the quote list. I’m just at a loss for how to do this.

Oh, then there’s nothing simpler than using the Quote API as regular, you just have to modify the quote list a tiny bit:


$(eval a=`$(urlfetch$(querystring))`;`$(channel) has a new shiny: $(query)!`)


$(eval u=`$(urlfetch json`.split(/\d+\.\s/);u.shift();t=u.length;s=[];l=u.pop();for(i=0;i<9;i++){s.push(u.splice(Math.floor(Math.random()*u.length),1));}`Here's a small selection of $(channel)'s shinies: ${s.join(`, `)}, and ${l}. Total: ${t} shinies. Consult the full list here:`)

Don’t forget to replace the TOKEN fields.

Assuming you already have at least 10 shinies, this should work just fine.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.