UNPKG

kakashi-self-handler

Version:
21 lines (19 loc) 651 B
const { VoteClient } = require('topgg-votes'); const {yellowBright} = require('chalk') async function handleTopGG(kakashi) { try{ console.log(kakashi.vote.webhook.token) kakashi.topgg = new VoteClient({ token: kakashi.vote.webhook.token, webhook: { port: kakashi.vote.webhook.port, path: kakashi.vote.webhook.path, authorization: kakashi.vote.webhook.auth } }) console.log(yellowBright(`{Kakashi Vote Handler} - Connected to TOPGG`)) } catch(err) { console.log(err) } } module.exports = handleTopGG;