gaincode.js
v1.0.4
Published
<a href="https://discord.gg/hx84CUq5DU" target="_blank"><img src="https://logos-world.net/wp-content/uploads/2020/12/Discord-Logo.png?size=512" alt="Join our discord" width="256"></a><br>
Downloads
10
Readme
gaincode.js
NPM: npmjs.com/package/gaincode.js
Installation
If you have trouble with the installation, please feel free to visit our discord address.
npm i gaincode.js
Define Module & Client
const Discord = require("discord.js");
const client = new Discord.Client();
const gaincode = require("gaincode.js");
const dbl = new gaincode("TOKEN-HERE", client);
client.login("BotToken");
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("714451348212678658"); // -> User ID
if(hasVote === true) {
console.log("Voted")
} else {
console.log("Vote please.")
}
// -> Vote please.
Search on gaincode.js
let botFind = await dbl.search("779641401482805289");
console.log(botFind.username) // -> Allegro