Skip to content
This repository was archived by the owner on Jan 16, 2024. It is now read-only.

Commit eb5116d

Browse files
authored
Add files via upload
1 parent 1b7f8fe commit eb5116d

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

client/index.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,13 @@ const events = require('@Structure/events');
2323
commands.run(client);
2424
events.run(client);
2525

26-
client.login(config.token);
26+
module.exports.init = async (token) => {
27+
28+
client.userBaseDirectory = __dirname;
29+
30+
await client.login(config.token);
31+
32+
return client;
33+
34+
}
2735

0 commit comments

Comments
 (0)