This library is no longer maintained, check out cheeseformice/transformice.js for a mantained work
NodeJs Client for Transformice with full Typescript support.
Clone the repository:
git clone https://github.com/SuspiciousLookingOwl/transformice.js
Install dependencies:
npm i
Watch and compile files:
npm run dev
const { Client, enums } = require("transformice.js");
const client = new Client("username", "password", {
language: enums.languages.en
});
client.on("roomMessage", (message) => {
if (client.name === message.author.name) return;
client.sendRoomMessage(message.author.look);
});
client.run("tfm_id", "token", );