Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 379 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 379 Bytes

@tmi.js/chat

Connect to Twitch IRC chat.

Install

npm i @tmi.js/chat

Usage

import tmi from '@tmi.js/chat';

const client = new tmi.Client({ channels: [ CHANNEL_NAME ], token: AUTH_TOKEN });

client.connect();

client.on('message', e => {
	const { channel, user, message } = e;
	console.log(`[${channel.login}] ${user.login}: ${message.text}`);
});