- See Config.
yarn install # install deps
yarn start # run
yarn dev # run, watching for code changes
curl http://localhost:4111/chat --data "hello world"
:Chat hello world
vim.cmd([[
function! Chat(message)
silent execute "!curl --silent http://localhost:4111/chat --data" "\"" escape(a:message, '!"') "\""
echo ""
endfunction
command! -nargs=+ Chat call Chat(<q-args>)
]])
TWITCH_USER="..." # chat user's username
TWITCH_REFRESH_TOKEN="..." # refresh token from twitch cli (for user)
TWITCH_CHANNEL="..." # target chat channel to send messages to
TWITCH_APP_CLIENT_ID="..." # your twitch developer app's client id
TWITCH_APP_CLIENT_SECRET="..." # your twitch developer app's client secret
HTTP_PORT="4111" # local port to use for http api
HTTP_HOST="0.0.0.0" # local host to use for http api
Using the Twitch CLI.
twitch token -u -s 'chat:read chat:edit'
Using the Twitch Console > Apps.
- See Registering Your App.