forked from 2YC-MD/TIMNASA_TMD1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimg.js
More file actions
33 lines (22 loc) · 622 Bytes
/
img.js
File metadata and controls
33 lines (22 loc) · 622 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
const {zokou} = require('../framework/zokou');
var gis = require('g-i-s');
zokou({
nomCom: "img",
categorie: "Search",
reaction: "📷"
},
async (dest, zk, commandeOptions) => {
const { repondre, ms, arg } = commandeOptions;
if (!arg[0]) {
repondre('which image ? !');
return;
}
const searchTerm = arg.join(" ");
//repondre("termes " +searchTerm);
gis(searchTerm,envoiImage);
function envoiImage(e,r)
{
if(e){repondre("oups une error ")}else{for(var a=0;a<5;a++){zk.sendMessage(dest,{image:{url:r[a].url}},{quoted:ms});}}
}
//gis(searchTerm,envoiImage);
});