Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

viperlight/Twitch.tvjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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