Socket
Socket
Sign inDemoInstall

@twitchapis/twitch.js

Package Overview
Dependencies
24
Maintainers
2
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @twitchapis/twitch.js

Twitch.JS is a Nodejs library made with typescript to interact with the Twitch API in a simple and easy way.


Version published
Weekly downloads
4
increased by100%
Maintainers
2
Created
Weekly downloads
 

Changelog

Source

v2.0.0-beta.3

  • [FIX] Fixed an issue caused by twitch sending numbers as strings in the message event.
    • This fix is made especially for the bits field of the message event.

Readme

Source


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

Keywords

FAQs

Last updated on 23 Mar 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc