File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 11const discord = require ( "discord.js" ) ;
22const client = discord . Client ( ) ;
33
4+ // Requires Manager from blwebhooks
45const { WebhooksManager } = require ( "blwebhooks" ) ;
5-
6- // Attatch The Client and Port to the module.
7- // The client is it attaching to the client, 80 is the port it will run on
6+ // Creates the voteClient manager
87const voteClient = new WebhooksManager ( client , 80 ) ;
8+ // Now we have attached the manager to the client so we can use it everywhere!
99client . voteManager = voteClient ;
1010
1111voteClient . extraProtection ( true ) ;
@@ -27,5 +27,10 @@ client.on("BTR-voted", async function (userID) {
2727 setTimeout ( ( ) => member . roles . remove ( "748340144897261660" ) . catch ( console . error ) , 1000 * 60 * 60 * 24 ) ;
2828
2929} ) . catch ( ( ) => { } ) ;
30-
3130} ) ;
31+
32+ client . on ( 'ready' , ( ) => {
33+ console . log ( 'I\'m ready !' ) ;
34+ } ) ;
35+
36+ client . login ( settings . token ) ;
You can’t perform that action at this time.
0 commit comments