Skip to content

tmijs/chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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}`);
});