diff --git a/commands/base.js b/commands/base.js index a65a105..752af12 100644 --- a/commands/base.js +++ b/commands/base.js @@ -11,6 +11,7 @@ module.exports = [ arguments: ["any"], description: "Check how fast bot will reply!" }, + { name: "help", run: (ctx, args) => { diff --git a/index.js b/index.js index 2883f7a..d52b766 100644 --- a/index.js +++ b/index.js @@ -114,11 +114,8 @@ client.on("messageCreate", (message) => { } // Run command - if (realCommand.arguments == ["any"] || realCommand.arguments == ["none"]) { - realCommand.run(message, args) - } else { - realCommand.run(message, ...args) // Example in extra.js - } + realCommand.run(message, ...args) + //...args passes it as separate args rather than an Array }) // After getting the command list we can export it