2.0.0-beta.3 • Published 1 year ago

@twitchapis/twitch.js v2.0.0-beta.3

Weekly downloads
9
License
MIT
Repository
github
Last release
1 year ago

About

Twitchʲˢ is a UNOFFICIAL api to interact with Twitch IRC.

  • Object-oriented
  • Predictable abstractions
  • Performant

Installing

Node.js 12.22.X or newer is required.

  • npm:
npm i @twitchapis/twitch.js
  • yarn:
yarn add @twitchapis/twitch.js

Example Usage

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.login('token');

Contributors

Thanks to all of the contributors!

Authors

Lobo MetalurgicoSpace_Interprise