potatoqualitee / twitch

🤖 twitch.tv API client and chatbot written in PowerShell
14 stars 4 forks source link

some code #8

Closed potatoqualitee closed 3 years ago

potatoqualitee commented 3 years ago

Invoke-RestMethod -Uri "https://api.twitch.tv/kraken/user" -Headers @{ "Accept" = "application/vnd.twitchtv.v5+json" "Client-ID" = "uo6dggojyb8d6soh92zknwmi5ej1q2" "Authorization" = "OAuth $token" } -Method Get

potatoqualitee commented 3 years ago

Use upper case name

badge-info=;badges=;client-nonce=b5c3bc0e7325408ef3cbec815ec905af;color=#8A2BE2;display-name=BWMerlin;emotes=;flags=;id=f6197fef-a088-4ae9-8dd6-0294d832bd66 ;mod=0;room-id=403789625;subscriber=0;tmi-sent-ts=1608600475127;turbo=0;user-id=45270829;user-type= :bwmerlin!bwmerlin@bwmerlin.tmi.twitch.tv PRIVMSG

potatoqualitee commented 3 years ago

need to fix if there's a login failure, dont just die

potatoqualitee commented 3 years ago

cache when they enter the room and use a runspace

Windos commented 3 years ago

cache when they enter the room and use a runspace

Alternative, occasionally get list of current viewers and cache anyone not already in the cache. If they talk before being cached either do JIT avatar grab... or default image.

potatoqualitee commented 3 years ago

auto emote conversion

https://discuss.dev.twitch.tv/t/grabbing-chat-messages-with-new-twitch-api/27555

potatoqualitee commented 3 years ago

create github actions to test for pi compat

potatoqualitee commented 3 years ago

used code!