Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/promisependingapis/twitch.js

Twitchʲˢ is a [UNOFFICIAL] api to interact with Twitch IRC
https://github.com/promisependingapis/twitch.js

javascript nodejs twitch twitchdev

Last synced: 8 days ago
JSON representation

Twitchʲˢ is a [UNOFFICIAL] api to interact with Twitch IRC

Lists

README

        








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:

```bat
npm i @twitchapis/twitch.js
```

- yarn:

```bat
yarn add @twitchapis/twitch.js
```

## Example Usage

```javascript
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](https://github.com/twitchapis/twitch.js/graphs/contributors)!

## Authors

| [
Lobo Metalurgico](https://github.com/LoboMetalurgico) | [
Space_Interprise](https://github.com/emanuelfranklyn) |
| :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |