text: const Interpreter = require('../../interpreter.js')
  module.exports = async (client) => {
      const cmds = client.cmd.loop.allValues()
      let chan;
      let data = {
          client: client,
          channel: undefined,
          guild: undefined,
      }
      for (const cmd of cmds) {
          if (cmd.channel?.includes("$")) {
              const id = (await Interpreter(client, data, [], { name: "ChannelParser", code: cmd.channel }, client.db, true));
              chan = client.channels.cache.get(id?.code)
              data.channel = chan
              data.guild = chan?.guild
          }
          else {
              chan = client.channels.cache.get(cmd.channel);
          }
          setInterval(async () => {
              await Interpreter(client, data, [], cmd, client.db, false, chan?.id, {}, chan);
          }, cmd.every || 60000);
  
          if (cmd.executeOnStartup) await Interpreter(client, data, [], cmd, client.db, false, chan?.id, {}, chan);
      }
  }