You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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';constclient=newClient();client.on('ready',()=>{console.log(`Logged in as ${client.user.username}!`);});client.on('trackCommentMention',data=>{constcomment=data.comment;if(comment.message.startsWith('ping')){comment.reply('pong');}});client.login(TOKEN);