The Module API is event-driven — everything you code is triggered by specific game events. Some of the most useful events include:
// Conceptual example of an in-game bot using a community library const TFM = require('transformice-wrapper-library'); const bot = new TFM.Client( username: "BotName#0000", password: "YourPassword" ); bot.on('ready', () => console.log("Bot has successfully connected to Transformice!"); bot.joinRoom("utility-room"); ); bot.on('whisper', (player, message) => if (message === "!help") bot.whisper(player, "Hello! I am an automated Transformice bot."); ); bot.connect(); Use code with caution. Aiottfm (Python)
ws.on('message', (data) => const msg = data.toString(); const cmd = msg.substring(0, 1);
: This API is not fully public. You must typically request access through the Atelier 801 forums by providing details about your project. transformice api
You cannot access the file system ( io.open ), the full os library, or standard networking sockets. You can only use tfm.exec.httpRequest and print .
Global and local rankings for various game modes. Tribe Data: Member lists and tribe house statistics.
These endpoints may change without notice. Use them for small statistics bots, not critical infrastructure. The Module API is event-driven — everything you
Are you building a or a website statistic scraper ?
Anyone can test scripts in their own tribe house or specialized game rooms. 🛠️ Key Capabilities
Older versions had GET /rooms/list . Current game obtains room lists via getroomlist internal message. Aiottfm (Python) ws
) approved by administrators. Playing in these rooms earns you shop cheese every 2 minutes. Semi-Official Modules
Sites like catalog every piece of fur, accessory, and hat in the game. They often use internal game asset references (IDs) to display items—data that is technically part of the game’s resources rather than a web API.