Official API wrapper for https://zhat.cf
npm i zhat.js
const Zhat = require("zhat.js");
const client = new Zhat.Client();
client.on("ready", () => {
console.log(`Login as ${client.user.username}`)
});
client.login('token');
new Client()
- return #client
none
<client>.on("ready", () => {
console.log("Ready!")
});
- return #None
<client>.on("message", (message) => {
console.log(message)
});
- return #Message
<client>.login('token')