text: const config = require("../../config.json");
  const discord = require("discord.js");
  
  /**
   * @param {discord.Client} client
   * @param {discord.Message} message
   * @returns
   */
  
  module.exports = async (client, message) => {
    if (message.author.bot) return;
    const messageArray = message.content.split(" ");
    const cmd = messageArray[0];
    const args = messageArray.slice(1);
    if (message.author.bot || message.channel.type === "dm") return;
    const prefix = config.prefix;
    if (!message.content.startsWith(prefix)) return;
    const commandfile =
      client.commands.get(cmd.slice(prefix.length).toString().toLowerCase()) ||
      client.commands.get(
        client.aliases.get(cmd.slice(prefix.length).toString().toLowerCase())
      );
    if (commandfile) {
      commandfile.run(client, message, args);
    }
  };
  