Put the following in your index.js
import { VoteClient, VoteClientEvents } from 'topgg-votes'
const votesClient = new VoteClient({
token: "TOKEN",
webhook: {
port: 22565,
path: "/dblwebhook",
authorization: "WEBHOOK"
}
})
// Event for vote notifications
votesClient.on(VoteClientEvents.BotVote, ({ userId }) => {
console.log(`${userId} has voted!`)
})