diff --git a/commands/base.js b/commands/base.js index 2c2474e..04d530b 100644 --- a/commands/base.js +++ b/commands/base.js @@ -5,7 +5,6 @@ module.exports = [ { name: "ping", run: (ctx, args) => { - console.log(ctx, args) ctx.reply(`Pong! ${args}`) }, hide: false, @@ -25,7 +24,6 @@ module.exports = [ return // Go to next command if this one should show up } const field = {name: command.name, value: `Description: ${command.description || "None"}\nArguments: ${command.arguments || "None"}`} - console.log(field) embed.addFields(field) }) }) diff --git a/index.js b/index.js index 6a42041..882ce35 100644 --- a/index.js +++ b/index.js @@ -84,7 +84,6 @@ client.on("messageCreate", (message) => { // Parsing args.forEach((arg, index) => { - console.log(index) if (arg.startsWith("<@")) { // User, lets get the id const id = arg.slice(2, arg.length - 1) @@ -118,6 +117,7 @@ client.on("messageCreate", (message) => { realCommand.run(message, args) }) +// After getting the command list we can export it module.exports.commands = commands // Time to login