text: const fs = require('fs')
  const { create, decryptMedia } = require('@open-wa/wa-automate')
  const nrc = require('node-run-cmd')
  const mime = require('mime-types')
  
  exports.sauce = async function (message) {
  const buffer = await decryptMedia(message);
  const fileName = `temp${from}.${mime.extension(message.mimetype)}`; 
  fs.writeFile(fileName, buffer, function (err) {})
  client.sendText(message.from, "Searching Source");
  
  await nrc.run("curl -F \"image=@"+'temp'+message.from+".jpeg\""+" https://trace.moe/api/search", { onData: dataCallback})
  try {
    daten = JSON.parse(daten);
  } catch (error) {
   // console.log("keine Sauce gefunden")
    client.sendText(message.from, "Could not find source");
    await nrc.run('rm temp'+message.from+".jpeg")
    return
  }
  
  var anime = ""
  for (let index = 1; index < daten.docs.length; index++) {
  
    var anime = anime + index + ". result " + daten.docs[index].anime + "\n"
    
  }
  console.log(anime)
  client.sendText(from, anime);
  }
  
  var dataCallback = function(data) {
      daten = data 
        }
  