-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathimg.js
More file actions
27 lines (25 loc) · 909 Bytes
/
Copy pathimg.js
File metadata and controls
27 lines (25 loc) · 909 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
module.exports.config = {
name: "điền tên lệnh",
version: "1.0.0",
hasPermssion: 0,
credits: "JustGon", //Giữ Credit tôn trọng thằng làm ra
description: "request ảnh",
commandCategory: "điền tên lệnh",
usages: "[tag]",
cooldowns: 5,
dependencies: {
"axios": "",
}
};
module.exports.run = async function ({ event, api, args }) {
const { threadID, messageID } = event;
var reply = {
body: "điền thứ bot sẽ reply cùng ảnh",
attachment: (await global.nodemodule["axios"]({
url: (await global.nodemodule["axios"]('điền link api ảnh vào đây')).data.data, //Nếu api dạng chatfuel thì là .data[0].data '-'
method: "GET",
responseType: "stream"
})).data
}
return api.sendMessage(reply, threadID, messageID);
}