1.1.4 • Published 3 years ago

twitch.tvjs v1.1.4

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

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

$ 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>');

Links

Website

Github

1.1.4

3 years ago

1.1.3

3 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago