About

Twitchʲˢ is a unofficial API to interact with Twitch IRC.

Example of use

const { Client } = require('@twitchapis/twitch.js');
const client = new Client({
  channels: ['space_interprise', 'lobometalurgico'],
});
client.on('ready', () => {
  console.log(`Logged in as ${client.user.name}!`);
});
client.on('message', (msg) => {
  if (msg.content === 'ping') {
    msg.channel.send('pong');
  }
});
client.on('disconnected', (code, reason) => {
  console.log(`Disconnected from twitch with code: ${code}, reason: ${reason}`);
});
client.login('token');

Promise<Pending>Apis

Twitch.JS

npm install @twitchapis/twitch.js
yarn add @twitchapis/twitch.js