havoclisting.js
v2.0.6
Published
havoclisting.tech official module
Downloads
10
Maintainers
Readme
Installation
npm i havoclisting.js
Define Module & Client
const Discord = require("discord.js");
const client = new Discord.Client();
const Havoc = require("havoclisting.js");
const havoclisting = new Havoc("TOKEN-HERE", client);
Certificate Application
havoclisting.certificateApplication("I am applying for certificate", () => {
console.log("Certificate successfully applied.");
})
Update Server Count
havoclisting.updateCount(client, () => {
console.log("Updated Server Count.");
})
Vote Checking
havoclisting.checkVote("userId").then((value) => {
if(value === 1) {
console.log("User voted.")
} else {
console.log("User hasn't voted.")
}
})