tb93-rooms-mod

1.0.1 • Public • Published

TB93

Examples

const tb = require("tb93");

let bot = new tb.Trollbox(new tb.User("Example Bot", "green"));

bot.on_message = msg => {
  console.log(msg, msg.user);
  if (msg.user == "jankenpopp") {
    console.log(msg.user.home);
    throw "Oh no, it's Jankenpopp!";
  }
};

bot.on_error = err => { bot.send("Error:\n" + err.toString()) }

bot.connect();

Note

By default this library will not work on Windows93's server. You need to enable emulateBrowser to bypass the restrictions.

Readme

Keywords

none

Package Sidebar

Install

npm i tb93-rooms-mod

Weekly Downloads

3

Version

1.0.1

License

ISC

Unpacked Size

6.68 kB

Total Files

4

Last publish

Collaborators

  • kagamox