@twitchapis/twitch.js
TypeScript icon, indicating that this package has built-in type declarations

2.0.0-beta.3 • Public • Published


Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contributors
  5. Authors

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 Metalurgico

Space_Interprise

Package Sidebar

Install

npm i @twitchapis/twitch.js

Weekly Downloads

10

Version

2.0.0-beta.3

License

MIT

Unpacked Size

135 kB

Total Files

108

Last publish

Collaborators

  • lobometalurgico
  • space_interprise