case 'openai':
case 'kotori':
case 'ai': {
  if (args.length == 0) return setReply(`Kenapa kak?? Ada yang bisa kotori bantu??`)
  let dimss = await fetchJson(`https://vihangayt.me/tools/chatgpt?q=${args[0]}`)
  let anunya = dimss.data
  let me = m.sender
  conn.sendMessage(from, {
    text: `${anunya}`,
    contextInfo: {
      forwardingScore: 9999999,
      isForwarded: true,
      mentionedJid: [me],
      "externalAdReply": {
        "showAdAttribution": true,
        "renderLargerThumbnail": true,
        "title": `${botName}`,
        "body": `GPT Chat`,
        "containsAutoReply": true,
        "mediaType": 1,
        "thumbnail": fs.readFileSync('./media/openai.jpeg'),
        "mediaUrl": `${syt}`,
        "sourceUrl": `${syt}`
      }
    }
  }, {quoted: m})
}
break

Note: I assume that conn is the connection object and botName is the name of the bot. You may need to adjust these variables accordingly

ubahlah javascript berikut menjadi code esm case openaicase kotoricase ai if argslength == 0 return setReplyKenapa kak Ada yang bisa kotori bantulet dimss = await fetchJsonhttpsvihangaytmetoolschatgpt

原文地址: http://www.cveoy.top/t/topic/iZJT 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录