Skip to content

Vins2106/zhat.js

Repository files navigation

Zhat.js

Official API wrapper for https://zhat.cf

Install to use

npm i zhat.js

Example

const Zhat = require("zhat.js");
const client = new Zhat.Client();

client.on("ready", () => {
  console.log(`Login as ${client.user.username}`)
});

client.login('token');

Docs

Classes

Client

new Client()

BaseClient

none

Events

ready

<client>.on("ready", () => {
  console.log("Ready!")
});
  • return #None

message

<client>.on("message", (message) => {
  console.log(message)
});

Methods

login

<client>.login('token')

About

Offical API wrapper for zhat.js

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published