Upload case.js
Browse files
case.js
CHANGED
@@ -380,7 +380,6 @@ module.exports = async (conn, dev, chatUpdate, store) => {
|
|
380 |
const isAntiViewOnce = isGroup ? db.data.chats[from].viewonce : false
|
381 |
const isAntiBot = isGroup ? db.data.chats[from].antibot : false
|
382 |
const isAntiNsfw = isGroup ? db.data.chats[from].nsfw : false
|
383 |
-
const thumb = fs.readFileSync('./temp/blueimages/thumb.jpg')
|
384 |
|
385 |
//User
|
386 |
const userLevel = user ? db.data.users[m.sender].level : true
|
@@ -531,32 +530,6 @@ module.exports = async (conn, dev, chatUpdate, store) => {
|
|
531 |
}
|
532 |
}
|
533 |
}
|
534 |
-
const ftoko = {
|
535 |
-
key: {
|
536 |
-
fromMe: false,
|
537 |
-
participant: `[email protected]`,
|
538 |
-
...(from ? {
|
539 |
-
remoteJid: "[email protected]"
|
540 |
-
} : {})
|
541 |
-
},
|
542 |
-
message: {
|
543 |
-
"productMessage": {
|
544 |
-
"product": {
|
545 |
-
"productImage": {
|
546 |
-
"mimetype": "image/jpeg",
|
547 |
-
"jpegThumbnail": fs.readFileSync('./temp/blueimages/thumb.jpg')
|
548 |
-
},
|
549 |
-
"title": `${pushname}`,
|
550 |
-
"description": `${ucapanWaktu} kak`,
|
551 |
-
"currencyCode": "IDR",
|
552 |
-
"priceAmount1000": `${pushname}`,
|
553 |
-
"retailerId": `Rp10`,
|
554 |
-
"productImageCount": 1
|
555 |
-
},
|
556 |
-
"businessOwnerJid": `[email protected]`
|
557 |
-
}
|
558 |
-
}
|
559 |
-
}
|
560 |
//Message
|
561 |
require("./message.js")(senderNumber, prefix, command, reply)
|
562 |
// Custom reply function
|
@@ -1676,7 +1649,7 @@ case 'update': {
|
|
1676 |
const aiResponse = res.data;
|
1677 |
await conn.sendMessage(from, {
|
1678 |
image: {
|
1679 |
-
url: '
|
1680 |
},
|
1681 |
caption: fontx(`*BLUE AI Response:*\n${aiResponse}\n> ${caption}`),
|
1682 |
}, {
|
@@ -1705,7 +1678,7 @@ case 'update': {
|
|
1705 |
const aiResponse = res.data;
|
1706 |
await conn.sendMessage(from, {
|
1707 |
image: {
|
1708 |
-
url: '
|
1709 |
},
|
1710 |
caption: fontx(`*Gemini AI Response:*\n\n${aiResponse}\n> ${caption}`),
|
1711 |
}, {
|
@@ -1737,7 +1710,7 @@ case 'update': {
|
|
1737 |
|
1738 |
await conn.sendMessage(from, {
|
1739 |
image: {
|
1740 |
-
url: '
|
1741 |
},
|
1742 |
caption: fontx(`*Gemini pro Response:*\n${aiResponse}\n> ${caption}`),
|
1743 |
}, {
|
|
|
380 |
const isAntiViewOnce = isGroup ? db.data.chats[from].viewonce : false
|
381 |
const isAntiBot = isGroup ? db.data.chats[from].antibot : false
|
382 |
const isAntiNsfw = isGroup ? db.data.chats[from].nsfw : false
|
|
|
383 |
|
384 |
//User
|
385 |
const userLevel = user ? db.data.users[m.sender].level : true
|
|
|
530 |
}
|
531 |
}
|
532 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
533 |
//Message
|
534 |
require("./message.js")(senderNumber, prefix, command, reply)
|
535 |
// Custom reply function
|
|
|
1649 |
const aiResponse = res.data;
|
1650 |
await conn.sendMessage(from, {
|
1651 |
image: {
|
1652 |
+
url: 'https://huggingface.co/spaces/API-XX/TEST/resolve/main/Links/thumb.jpg',
|
1653 |
},
|
1654 |
caption: fontx(`*BLUE AI Response:*\n${aiResponse}\n> ${caption}`),
|
1655 |
}, {
|
|
|
1678 |
const aiResponse = res.data;
|
1679 |
await conn.sendMessage(from, {
|
1680 |
image: {
|
1681 |
+
url: 'https://huggingface.co/spaces/API-XX/TEST/resolve/main/Links/images.jpeg'
|
1682 |
},
|
1683 |
caption: fontx(`*Gemini AI Response:*\n\n${aiResponse}\n> ${caption}`),
|
1684 |
}, {
|
|
|
1710 |
|
1711 |
await conn.sendMessage(from, {
|
1712 |
image: {
|
1713 |
+
url: 'https://huggingface.co/spaces/API-XX/TEST/resolve/main/Links/images%20(1)%20(1).jpeg'
|
1714 |
},
|
1715 |
caption: fontx(`*Gemini pro Response:*\n${aiResponse}\n> ${caption}`),
|
1716 |
}, {
|