utmi
v0.0.23
Published
Uneventful Twitch Message Interface
Downloads
10
Maintainers
Readme
Uneventful Twitch Message Interface
Node.js client for Twitch Message Interface based on promises and queues. Supports IRC v3 commands, clusters, secure WebSockets, promisified rate limiting. Also everything is promises.
import utmi from 'utmi';
const username = '3snow_p7im';
const password = 'oauth:123456789';
let client = await new utmi({username, password}).connect();
let channel = client.join('#'+username);
let message;
while (message = await channel.take()) {
if (message.command === 'PRIVMSG') {
let [where, what] = message.params;
if (what.indexOf('Kappa') >= 0) {
channel.send('Keepo');
}
}
}
See Also: tmi.js