File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -29,11 +29,8 @@ const { SoundCloudPlugin } = require("@distube/soundcloud");
29
29
let timeouts = new Map ( ) ;
30
30
const Topgg = require ( "@top-gg/sdk" ) ;
31
31
const { AutoPoster } = require ( "topgg-autoposter" ) ;
32
-
33
32
const api = new Topgg . Api ( topGGToken )
34
- const ap = AutoPoster ( topGGToken , client ) ;
35
33
logger . info ( "All packages imported. Credentials set." ) ; console . log ( "All packages imported. Credentials set." ) ;
36
-
37
34
/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////
38
35
| | | | | | | | | | All the ugly constants related to DJS | | | | | | | | | | |
39
36
/////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
@@ -54,7 +51,7 @@ const client = new Client({
54
51
The code
55
52
that makes voting work
56
53
/////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
57
-
54
+ const ap = AutoPoster ( topGGToken , client ) ;
58
55
ap . on ( "posted" , ( ) => {
59
56
logger . info ( "Posted stats to Top.GG!" ) ;
60
57
console . log ( "Posted stats to Top.gg!" ) ;
You can’t perform that action at this time.
0 commit comments