twitch.tvjs
v1.1.4
Published
Interface with the twitch api
Downloads
2
Readme
Twitch.tvjs
Twitch.tvjs is a powerful node.js module that allows you to interact with the twitch very easily. It is an object-oriented JS librarie, making your code significantly tidier and easier to comprehend.
Install
- require node v12+
$ npm install twitch.tvjs
Example usage
const twitch = require('twitch.tvjs');
const client = new twitch.Client({
channels: ['channel1', 'channel2'],
});
client.on('ready', () => {
console.log(`${client.user.username} Ready`);
});
client.on('chat', (message) => {
if (message.self) return;
if (message.content === '!ping') {
message.reply('!Pong');
}
});
client.login('<username>', 'oauth:<auth-token>');