galacticaapi.js
v0.0.7
Published
an api for galactica.ga
Downloads
18
Maintainers
Readme
galactica.js
Support: https://galactica.ga/dc NPM: npmjs.com/package/galactica.js API DOCUMANTS galacticadevelopment.gitbook.io/galactica-devlopment/
Installation
If you have trouble with the installation, please feel free to visit our discord address.
npm i galactica.js
const Galactica = require("galactica.js");
const dbl = new Galactica("TOKEN-HERE", client);
client.on("ready", async () => {
dbl.serverCount();
// console.log("Server count posted")
let hasVote = await dbl.hasVoted("822748323453992980");
if(hasVote === true) {
console.log("Voted")
} else {
console.log("Vote please.")
}
let search = await dbl.search("822748323453992980")
console.log(search)
/*
{
avatar: 'https://cdn.discordapp.com/avatars/838206674400444416/df02eb573964a4e9b6a44855e2202de6.webp',
botID: '838206674400444416',
username: 'ToxyBot',
discrim: '2830',
shortDesc: 'bot',
prefix: '! [changable]',
votes: 31,
ownerID: '822748323453992980',
owner: 'x$nN',
coowners: [ '' ],
tags: [ 'Moderation', 'NSFW', 'Music' ],
longDesc: longDesc,
certificate: 'Certified'
}
*/
});