Transformice.js is a Node.js Client for Transformice that allows you to create bots. It comes with full support for CommonJS and Typescript typings.
Transformice.js was originally created by SuspiciousLookingOwl. It is currently being maintained on Cheeseformice.
To use this client, you must log in with an approved in-game bot account. Bot account applications are closed indefinitely. There is no formal task force to manage such applications at the moment, however if you have a project in need of a bot account, please feel free to reach out to a member of the Module Team or myself on the Atelier 801 forums.
Please note that we will only consider legitimate use cases that provide value-add to the game and will not entertain bots solely for personal use. Final approval is subject to higher decision-making.
Clone the repository:
git clone https://github.com/cheeseformice/transformice.js
Install dependencies:
pnpm i
Watch and compile files:
pnpm run dev
const { Client, enums } = require("@cheeseformice/transformice.js");
const client = new Client("username", "password", {
language: enums.Language.en
});
client.on("roomMessage", (message) => {
if (client.name === message.author.name) return;
client.sendRoomMessage(message.author.look);
});
client.run();
- Thanks Owl for pioneering the bulk of Transformice.js.
- Thanks to Athes for detfm. I no longer have to read garbled nonsense to get the packet structure.
- Thanks to friedkeenan for maintaining the exhaustive packet documentation in caseus. Saves me the manual labour needing to sherlock holmes those myself.
If you would like a different flavor to write your bot in, you may check out the other similar Transformice clients:
- aiotfm - Python
- Transfromage - Lua
- cheesy.js - Another Node.js client