tetr.js

An API Wrapper For TETR.IO

Usage no npm install needed!

<script type="module">
  import tetrJs from 'https://cdn.skypack.dev/tetr.js';
</script>

README

An API Wrapper For TETR.IO

Install

$ npm i tetr.js --save

Example

const { Client } = require("tetr.js");

const client = new Client();

client.on("ready", () => {
  console.log("Bot online");
});

client.login("YOUR-TOKEN-HERE");

Find more examples here

Gameplay

Gameplay is currently NOT built-in to this package. However, we do have a currently WIP addon to this package to enable gameplay. If you want access to it, or you just want to know the specifics of how it works, you can join our discord and ask there.

Technologies

Contributing

Feedback and PRs are welcome!

Discord

License

This project is licensed under the MIT License. See LICENSE for details.

Disclaimer

TETR.JS is not associated with TETR.IO or osk. The token provided must match an account that has been approved as a bot account. Contact osk on Discord to receive such bot accounts.

Credits

Special thanks to Poyo-SSB for documenting how the TETR.IO Ribbon system operates.