2.0.6 • Published 2 years ago

havoclisting.js v2.0.6

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
2 years ago

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.")
    }
})