cdapi
v1.0.8
Published
Custom API Module for Cerberus Development API System
Downloads
4
Readme
Cerberus Development API Module Package
Example Usage (Javascript)
const CerberusAPI = require('cdapi');
const api = new CerberusAPI();
module.exports.run = (client, message, args) => {
api.getGeo(client.user.id,client.cdapi.token,args[0]).then(r => {
if (status === "success") {
console.log(`${r.body.message}`);
} else {
console.log(`${r.body.message}`);
}
}).catch((err) => {
console.log(err);
});
};