forked from VryptLab/EternityBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
25 lines (23 loc) · 734 Bytes
/
Copy pathscript.js
File metadata and controls
25 lines (23 loc) · 734 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
export default {
name: "script",
category: "utility",
command: ["sc", "script"],
run: async (conn, m, { Func }) => {
try {
const res = await Func.fetchJson("https://api.github.com/repos/VryptLab/EternityBot");
m.reply(`*Informasi Script*\n
◦ *Nama:* ${res.name}
◦ *Pemilik:* ${res.owner.login ?? "-"}
◦ *Star:* ${res.stargazers_count ?? 0}
◦ *Forks:* ${res.forks ?? 0}
◦ *Dibuat sejak:* ${Func.ago(res.created_at)}
◦️ *Terakhir update:* ${Func.ago(res.updated_at)}
◦ *Terakhir publish:* ${Func.ago(res.pushed_at)}
◦ *Link:* ${res.html_url}
`);
} catch (err) {
console.error(err);
return m.reply("Coba lagi nanti.");
}
}
};