Skip to content

Commit

Permalink
[Enhancement] help message enhanced, removed the createReadMe require…
Browse files Browse the repository at this point in the history
… from index since its only for devs
  • Loading branch information
naseif committed Sep 3, 2021
1 parent 6e5fdec commit 98fd15e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions commands/misc/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ module.exports = {
const commands = collection.map(
(command) =>
"`" +
`/${command.data.name}` +
`/${command.data.name} :` +
"`" +
" - " +
" " +
`${command.data.description}`
);
return commands;
Expand Down
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const client = new Client({
],
restRequestTimeout: 30000,
});
const { commandsReadMe } = require("./modules/commandsReadMe");
const { findAndRequire } = require("./modules/loopAndRequireCommands");
const { Player } = require("discord-player");
const player = new Player(client);
Expand All @@ -22,7 +21,6 @@ const fun = (client.commands.fun = new Collection());
const music = (client.commands.music = new Collection());
const misc = (client.commands.misc = new Collection());


// Admin Commands
findAndRequire("commands/admin", ".js", admin);

Expand All @@ -36,7 +34,6 @@ findAndRequire("commands/music", ".js", music);
findAndRequire("commands/misc", ".js", misc);

// All commands!

const allCommandsFolders = fs.readdirSync("./commands");

for (const folder of allCommandsFolders) {
Expand Down Expand Up @@ -64,6 +61,7 @@ for (const file of eventFiles) {
}

// Loop through the discord-player events and require them

const botEvents = fs
.readdirSync("./playerEvents")
.filter((file) => file.endsWith(".js"));
Expand Down

0 comments on commit 98fd15e

Please sign in to comment.