multi-stream-chatbot
Chatbot framework that listens and sends messages to multiple live-streaming platforms simultaneously
Documentation
Quick Start
// Create an action { return === "!dice" } async { const num = this return `You rolled a ` } { const sides = 6 return Math + 1 } const actions = // Configure twitch authconst twitchAuth = oauthToken: processenvTWITCH_BOT_KEY botUsername: processenvTWITCH_BOT_USERNAME channel: processenvTWITCH_CHANNEL // Create a botconst bot = streams: twitchAuth actions // Start the botbotstart
Streams
Supports:
- Youtube
- Twitch
- Dummy (Interval)
Actions
SimpleChatAction
Handles one command. See DiceAction for more details.
var AbstractSimpleChatAction =
StrategyBasedChatAction
Handles multiple commands that share state. See PollActions for more details.
var AbstractStrategyBasedChatAction AbstractMessageStrategy =
Test Locally
npm test
npm pretty
Example
See the Hacker Shack livestream chatbot repo to see usage examples.
Donations
Thanks for the support!
Zachary Nawrocki
: Love your videos. I've been working on a chat bot for my personal home assistant project, and these ideas have given me some inspiration. Thanks.