About
Twitchʲˢ is a unofficial API to interact with Twitch IRC.
Example
const { Client } = require('@twitchapis/twitch.js');
const client = new Client({
autoLogEnd: true, // Default true, optional parameter
channels: ['space_interprise', 'lobometalurgico'],
debug: false // Default false, optional parameter
});
client.on('ready', () => {
console.log(`Logged in as ${client.user.name}!`);
});
client.on('message', (msg) => {
if (msg.content === 'ping') {
msg.channel.send('pong');
}
});
client.login('token');
Why use Twitch.JS
- Object-oriented
- Predictable abstractions
- Performant
Statistics
- Loading downloads number...
- Loading stars number...
- Loading contributors number...
And the numbers keep growing!