an attempt to provide a generic, but highly-configurable platform for developers intending to create Twitch chat bots in Node.js
npm install twitch-chat-botnpm install twitch-chat-bot
javascript
const {
TwitchChatBot,
} = require("twitch-chat-bot");
function main()
{
let myBot = new TwitchChatBot({
credentials: {
username: "bot_username",
oauth: "oauth_string",
channel: "twitch_channel",
},
});
myBot.on("ready", ready);
}
function ready()
{
this.sendMessage("is online", { action: true });
}
main();
`
See: Getting Started
Features:
- Easy to get started.
- Many, many aspects of bot operation can be controlled at a very low level
- Event-driven operation allows a high level of customization
- i18n compliant (English & German translations available)
Command Center
- Add new chat commands by passing parameters
- Built-in, customizable chat cooldown with global and individual settings
- Commands are versatile and support aliases, shortcuts, plain text commands, and complex function-driven commands
- Commands can be added directly inside modules
- Built-in safe moderation helper
- Moderation helper can be customized to notify moderators of abuse (eg. spamming commands) or instructed to perform timeouts/bans without human approval
- Several commands built in to internal modules, pre-loaded
- Abilty to enable and disable any command programmatically, through chat commands, and manually, through the options object
- Override permissions for internal "default" commands
Self-Documenting
- Built-in !helpfile` command that documents all commands, both internal and custom and produces documents for every permission level. Documents formatted for Discord Markdown.