Spaces:
Paused
Paused
πππ₯π₯πππ π π¨ππππ₯π β‘
commited on
Update img.js
Browse files- plugins/img.js +2 -2
plugins/img.js
CHANGED
|
@@ -39,7 +39,7 @@ async (conn, mek, m, { from, quoted, body, isCmd, command, args, q, isGroup, sen
|
|
| 39 |
|
| 40 |
// Fetch image URLs from Google Custom Search API
|
| 41 |
const searchQuery = encodeURIComponent(q);
|
| 42 |
-
const url = `https://
|
| 43 |
|
| 44 |
const response = await axios.get(url);
|
| 45 |
const data = response.data;
|
|
@@ -64,7 +64,7 @@ async (conn, mek, m, { from, quoted, body, isCmd, command, args, q, isGroup, sen
|
|
| 64 |
|
| 65 |
*Enjoy these images! πΎ*
|
| 66 |
|
| 67 |
-
> π*
|
| 68 |
}, { quoted: mek });
|
| 69 |
}
|
| 70 |
|
|
|
|
| 39 |
|
| 40 |
// Fetch image URLs from Google Custom Search API
|
| 41 |
const searchQuery = encodeURIComponent(q);
|
| 42 |
+
const url = `https://api.giftedtech.my.id/api/search/googleimage?apikey=gifted&query=${searchQuery}&cx=${GOOGLE_CX}&key=${GOOGLE_API_KEY}&searchType=image&num=5`;
|
| 43 |
|
| 44 |
const response = await axios.get(url);
|
| 45 |
const data = response.data;
|
|
|
|
| 64 |
|
| 65 |
*Enjoy these images! πΎ*
|
| 66 |
|
| 67 |
+
> π*SUBZERO BOT PLUGINS*ποΈ`
|
| 68 |
}, { quoted: mek });
|
| 69 |
}
|
| 70 |
|