-
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Calculus edited this page Jan 30, 2024
·
1 revision
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
Node.js 18.0.0 or newer is required.
npm install antiland
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);
A powerful library for interacting with the AntiLand API