Skip to content
This repository has been archived by the owner on Apr 28, 2023. It is now read-only.

Commit

Permalink
[fix] fix an error with DBL webhooks
Browse files Browse the repository at this point in the history
  • Loading branch information
minotaa committed Jun 2, 2021
1 parent 60fed19 commit c91c9cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/events/ready.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async function webServer(bot) {
eco.add(`${user.id}.multiplier`, 1)
bonus = false
}
eco.set(`${user.user.id}.votedTop`, true)
eco.set(`${user.id}.votedTop`, true)
eco.push('unvotes', { user: req.body.user, unvoteAt: new Date().getTime() + 43200000, bonus: bonus, site: 'topgg' })
try {
if (bonus) embed.addField('<:check:820704989282172960> Thanks for voting!', 'You receive the following perks while you have the voting perk: \n+ :coin: **1,000**\n+ :crown: **2% Multiplier**')
Expand All @@ -82,7 +82,7 @@ async function webServer(bot) {
const embed = new MessageEmbed()
eco.add(`${user.id}.balance`, 750)
eco.add(`${user.id}.multiplier`, 1)
eco.set(`${user.user.id}.votedDBL`, true)
eco.set(`${user.id}.votedDBL`, true)
eco.push('unvotes', { user: req.body.id, unvoteAt: new Date().getTime() + 43200000, site: 'discordbotlistcom' })
try {
embed.addField('<:check:820704989282172960> Thanks for voting!', 'You receive the following perks while you have the voting perk: \n+ :coin: **750**\n+ :crown: **1% Multiplier**')
Expand Down

0 comments on commit c91c9cd

Please sign in to comment.