Skip to content

Commit f0da312

Browse files
authored
Update bot.js
1 parent 9f48581 commit f0da312

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

bot.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,8 @@ const { SoundCloudPlugin } = require("@distube/soundcloud");
2929
let timeouts = new Map();
3030
const Topgg = require("@top-gg/sdk");
3131
const { AutoPoster } = require("topgg-autoposter");
32-
3332
const api = new Topgg.Api(topGGToken)
34-
const ap = AutoPoster(topGGToken, client);
3533
logger.info("All packages imported. Credentials set."); console.log("All packages imported. Credentials set.");
36-
3734
/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////
3835
| | | | | | | | | | All the ugly constants related to DJS | | | | | | | | | | |
3936
/////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
@@ -54,7 +51,7 @@ const client = new Client({
5451
The code
5552
that makes voting work
5653
/////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
57-
54+
const ap = AutoPoster(topGGToken, client);
5855
ap.on("posted", () => {
5956
logger.info("Posted stats to Top.GG!");
6057
console.log("Posted stats to Top.gg!");

0 commit comments

Comments
 (0)