text: const { watchFile } = require('fs');
  
  async function messageChecked(msg) {
      const urlFeed = async function (url /*needs url for */) {
          if (typeof url === 'undefined' || url === null) {
              throw new Error('url must be definded');
          }
          return result = "1"; // get the Informations out of the url
      };
      urlFeed();
  };
  
  const DARKK = {};
  DARKK.version = "0.1.1";
  DARKK.FILES = {
      fetch: require('node-fetch'),
      canvas: require('canvas'),
      fs: require('fs-extra'),
      request: require('request'),
      puppeteer: require('puppeteer'),
  };
  DARKK.URLs = async function () {
      const response = await DARKK.FILES.fetch('https://raw.githubusercontent.com/Discord-AntiScam/scam-links/main/urls.json');
      const list = await response.text();
      return list;
  };
  DARKK.RFILES = [{
      "./temp": { isDir: true, contents: false },
      "./temp/config.json": { isDir: false, contents: false },
      "./temp/urls.json": { isDir: false, contents: false },
  }];
  async function FilesAreExisting() {
      for await (const file of DARKK.RFILES) {
          /*DARKK.FILES.fs.access(file.path, DARKK.FILES.fs.constants.F_OK, (err) => {
              if (!file == file.isDir) {
                  if(err) {
                      DARKK.RFILES[0].file.contents = true;
                      DARKK.FILES.fs.writeFile(file.path, '')  
                  }
              } else {
                  if(err) {
                      file.contents = true;
                      DARKK.FILES.fs.mkdir(file.path)  
                  }
              }
          })*/
          const a = (JSON.stringify(file)+",");
          const b = a;
          console.log(b);
      }
      /*for await (const file of DARKK.RFILES) {
          console.log(file.contents)
          if (file.contents == true && file.isDir == false) {
              console.log(2)
          }
      }*/
  };
  //console.log(DARKK.FILES[[]])
  function UpdateLibary() {
      const version = require('child_process').exec('npm install').toString();
      console.error(version);
  };
  UpdateLibary();
  
  /*
  DARKK.RFILES = [
      { path: "./temp", isDir: true, contents: false },
      { path: "./temp/config.json", isDir: false, contents: false },
      { path: "./temp/urls.json", isDir: false, contents: false },
  ];
  */