commands

So in a tutorial I watched, a guy was putting his commands in index.js, if I move the commands to another file, will it still work?

The command:

client.on('messageCreate', (message) => {
    if (message.content === "ping") {
       message.channel.send("pong")
}
Was this page helpful?