utmi

0.0.23 • Public • Published

Uneventful Twitch Message Interface

Npm Version Node Version

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

Package Sidebar

Install

npm i utmi

Weekly Downloads

0

Version

0.0.23

License

ISC

Last publish

Collaborators

  • 3snow_p7im