![]() Var %twitchapi = set %game $json(%twitchapi,stream,game) ![]() Here's an example, to get the game you're playing: You literally pass $json() to it to parse. It's very annoying, but thankfully the API doesn't go down too often now-a-days), but it's the easiest to understand. It's not "the best" (It will not handle properly if Twitch API is down or timing out, your mIRC will spit out errors telling you that the 'Script is not Responding' and will likely minimize your game. Here is a JSON Parser that you would load into mIRC: You can set up your bot in mIRC to download pages (save in cache) and decrypt JSON. My bot is 100% scripted in mIRC because I felt other bots did not provide an offering that I wanted.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |