1.0.0 • Published 3 years ago
uptimebotlist.js v1.0.0
uptimebotlist.js
Support: https://q.uptimebotlist.gq/dc NPM: npmjs.com/package/uptimebotlist.js
Installation
If you have trouble with the installation, please feel free to visit our discord address.
npm i uptimebotlist.js
Define Module & Client
const Discord = require("discord.js");
const client = new Discord.Client();
const UptimeBotlist = require("uptimebotlist.js");
const dbl = new UptimeBotlist("TOKEN-HERE", client);
client.login("TOKEN");
Server Count & Shard Count Posting
client.on("ready", async () => {
dbl.serverCount();
/*
-> Server count posted.
or
-> Server count & shard count posted.
*/
});
Vote Checking
let hasVote = await dbl.hasVoted("877909133494480956"); // -> User ID
if(hasVote === true) {
console.log("Voted")
} else {
console.log("Vote please.")
}
// -> Vote please.
Search on UptimeBotlist
let botFind = await dbl.search("877909133494480956");
console.log(botFind.username) // -> Vance
1.0.0
3 years ago