Skip to content

cwt-wa/twitch-bot

Repository files navigation

Only the command handling from the command line:

node handle.js 'TWITCH' 'https://twitch.tv/zemkecwt' 'Zemke' '!cwtcommand' | grep "^RES xx " | gsed 's/^RES xx //g'
// Nothing I have to say about this, Zemke.

With environment:

BOT_USERNAME=CWTBot CHANNEL_NAME=ZemkeCWT LISTEN=1 OAUTH_TOKEN=oauth:asdfasdfasdfasdfasdfasdfasdfad node index.js

Only the command handling formatting of chat messages:

node format.js SHOUTBOX Zemke 'hello there'