Skip to content
Calculus edited this page Jan 30, 2024 · 1 revision

About

antiland is a powerful Node.js module that allows you to easily interact with the AntiLand API.

  • Object-oriented
  • Predictable abstractions
  • Performant
  • 99.99% coverage of the AntiLand API

Installation

Node.js 18.0.0 or newer is required.

npm install antiland

Example usage

Install antiland:

npm install antiland

Create a simple example bot:

import { Client } from 'antiland';
const client = new Client();

client.on('ready', () => {
    console.log(`Logged in as ${client.user.username}!`);
});

client.on('trackCommentMention', data => {
    const comment = data.comment;
    if (comment.message.startsWith('ping')) {
        comment.reply('pong');
    }
});

client.login(TOKEN);
Clone this wiki locally