Socket
Socket
Sign inDemoInstall

@twitch.js/chat

Package Overview
Dependencies
36
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @twitch.js/chat

A library for interacting with the Twitch API and TMI (Chat)


Version published
Maintainers
1
Created

Readme

Source

Twitch.js

Twitch.js is a library that allows you to easily create chat bots or interact with the Twitch API.

Installation

NPM

npm install @twitch.js/chat

Yarn

yarn add @twitch.js/chat

Example Usage

import { chat } from '@twitch.js/chat';

chat.connect({
  user: process.env.CHAT_USER,
  token: process.env.CHAT_TOKEN,
  rateLimit: {
    joins: 20,
    messages: 20,
  },
});

chat.on('connect', async () => {
  await chat.joinChannel('hasanabi');
});

Contributing

Pull requests are always welcome!

Before creating an issue or pull request, please ensure there isn't an existing one open.

Keywords

FAQs

Last updated on 31 Mar 2022

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