Skip to content

Commit 81a7251

Browse files
authored
Update Botrix.js
1 parent 0e8e44b commit 81a7251

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

examples/Botrix.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
const discord = require("discord.js");
22
const client = discord.Client();
33

4+
// Requires Manager from blwebhooks
45
const { 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
87
const voteClient = new WebhooksManager(client, 80);
8+
// Now we have attached the manager to the client so we can use it everywhere!
99
client.voteManager = voteClient;
1010

1111
voteClient.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);

0 commit comments

Comments
 (0)