Skip to content

Commit

Permalink
[New] imported logger and attached it on client
Browse files Browse the repository at this point in the history
  • Loading branch information
naseif committed Sep 30, 2021
1 parent b6031a4 commit 700271d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const fs = require("fs");
const { Client, Collection, Intents } = require("discord.js");
const { logger } = require("./modules/logger.js");
const { token } = require("./config.json");
const client = new Client({
intents: [
Expand All @@ -11,10 +12,12 @@ const client = new Client({
],
restRequestTimeout: 30000,
});

const { Player } = require("discord-player");
const player = new Player(client);
client.player = player;
client.commands = new Collection();
client.logger = logger;

// All commands!
const allCommandsFolders = fs.readdirSync("./commands");
Expand Down

0 comments on commit 700271d

Please sign in to comment.