AQW.js is a node module used as a way of interfacing with AdventureQuest Worlds.
It is a useful module for creating bots for the new and old server.
Example:
Code:
const Client = require("../lib/Client/Client");
const client = new Client({ newServer: true, server: "TestingServer2" });
client.on("loginResponse", (data) => {
let motd = data.MOTD;
console.log(`[Message Of The Day] ${ motd }`);
});
client.on("moveToArea", (data) => {
let areaName = data.areaName;
console.log(`[Joined] ${ areaName }`);
});
client.login("Username", "Password");
Output:
Things yet to be implemented:
- Combat
- Documentation
- More useful methods
If you have features that you would like to see, please let me know