This simple Twitch bot can receive messages from, and send messages to, Twitch chat via Max.
Download Twitch_MaxMSP_Simple-Bot
to your Max projects folder,
and create a file named .env
in Twitch_MaxMSP_Simple-Bot/code
.
The .env file should contain the following:
BOT_USERNAME=username
CHANNEL_TO_JOIN=channelname
OAUTH_TOKEN=oauth:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Note
I used this site to generate an oauth token: https://twitchapps.com/tmi/
Thanks to dupontgu / twitch-plays-max, faaip / Twitch_Maxmsp_HPGL, the Max documentation, and ChatGPT.