forked from xIKRATOSx/Shizu-Bot-MD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuscador-apk.js
124 lines (114 loc) Β· 4.74 KB
/
buscador-apk.js
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
import { googleImage } from '@bochilteam/scraper'
import fetch from 'node-fetch'
import fs from 'fs'
let handler = async (m, {text, usedPrefix, command, conn}) => {
if (!text) throw `*[β] πΈπ½πΆππ΄π΄ππ΄ π΄π» π½πΎπΌπ±ππ΄ π³π΄ π»π° π°πΏπΊ πππ΄ πππΈπ΄ππ° π±πππ²π°π*`
const res = await googleImage(text)
let image = res.getRandom()
let link = image
if (command == 'apkdone') {
let json = await fetch(`https://dhn-api.herokuapp.com/api/apk/apkdone?apps=${text}&apikey=4ca83deeb14d61d16cf0`)
let jsons = await json.json()
let caption = `*βββγ ${command} γβββ*\n`
for (let x of jsons.result) {
caption += `
*π½πΎπΌπ±ππ΄:* *${x.apps_name}*
*π»πΈπ½πΊ:* ${x.apps_linkdl}
*π
π΄πππΈπΎπ½:* ${x.apps_version}
`}
await conn.sendFile(m.chat, link, 'error.mp3', caption, m)}
//await conn.reply(m.chat, caption, m)}
if (command == 'apkgoogle') {
let json = await fetch(`https://dhn-api.herokuapp.com/api/apk/apkgoogle?apps=${text}&apikey=4ca83deeb14d61d16cf0`)
let jsons = await json.json()
let caption = `*βββγ ${command} γβββ*\n`
for (let x of jsons.result) {
caption += `
*π½πΎπΌπ±ππ΄:* *${x.apps_name}*
*π»πΈπ½πΊ:* ${x.apps_linkdl}
`}
await conn.sendFile(m.chat, link, 'error.mp3', caption, m)}
//await conn.reply(m.chat, caption, m)}
if (command == 'apkmody') {
let json = await fetch(`https://dhn-api.herokuapp.com/api/apk/apkmody?apps=${text}&apikey=4ca83deeb14d61d16cf0`)
let jsons = await json.json()
let caption = `*βββγ ${command} γβββ*\n`
for (let x of jsons.result) {
caption += `
*π½πΎπΌπ±ππ΄:* *${x.apps_name}*
*π»πΈπ½πΊ:* ${x.apps_linkdl}
*π³π΄ππ²:* ${x.desc}
`}
await conn.sendFile(m.chat, link, 'error.mp3', caption, m)}
//await conn.reply(m.chat, caption, m)}
if (command == 'apkshub') {
let json = await fetch(`https://dhn-api.herokuapp.com/api/apk/apkshub?apps=${text}&apikey=4ca83deeb14d61d16cf0`)
let jsons = await json.json()
let caption = `*βββγ ${command} γβββ*\n`
for (let x of jsons.result) {
caption += `
*π½πΎπΌπ±ππ΄:* *${x.apps_name}*
*π»πΈπ½πΊ:* ${x.apps_linkdl}
`}
await conn.sendFile(m.chat, link, 'error.mp3', caption, m)}
//await conn.reply(m.chat, caption, m)}
if (command == 'happymod') {
let json = await fetch(`https://dhn-api.herokuapp.com/api/apk/happymod?apps=${text}&apikey=4ca83deeb14d61d16cf0`)
let jsons = await json.json()
let caption = `*βββγ ${command} γβββ*\n`
for (let x of jsons.result) {
caption += `
*π½πΎπΌπ±ππ΄:* *${x.apps_name}*
*π»πΈπ½πΊ:* ${x.apps_linkdl}
`}
await conn.sendFile(m.chat, link, 'error.mp3', caption, m)}
//await conn.reply(m.chat, caption, m)}
if (command == 'hostapk') {
let json = await fetch(`https://dhn-api.herokuapp.com/api/apk/hostapk?apps=${text}&apikey=4ca83deeb14d61d16cf0`)
let jsons = await json.json()
let caption = `*βββγ ${command} γβββ*\n`
for (let x of jsons.result) {
caption += `
*π½πΎπΌπ±ππ΄:* *${x.apps_name}*
*π»πΈπ½πΊ:* ${x.apps_linkdl}
*π³π΄ππ²:* ${x.apps_desc}
`}
await conn.sendFile(m.chat, link, 'error.mp3', caption, m)}
//await conn.reply(m.chat, caption, m)}
if (command == 'revdl') {
let json = await fetch(`https://dhn-api.herokuapp.com/api/apk/revdl?apps=${text}&apikey=4ca83deeb14d61d16cf0`)
let jsons = await json.json()
let caption = `*βββγ ${command} γβββ*\n`
for (let x of jsons.result) {
caption += `
*π½πΎπΌπ±ππ΄:* *${x.apps_name}*
*π»πΈπ½πΊ:* ${x.apps_linkdl}
`}
await conn.sendFile(m.chat, link, 'error.mp3', caption, m)}
//await conn.reply(m.chat, caption, m)}
if (command == 'toraccino') {
let json = await fetch(`https://dhn-api.herokuapp.com/api/apk/toraccino?apps=${text}&apikey=4ca83deeb14d61d16cf0`)
let jsons = await json.json()
let caption = `*βββγ ${command} γβββ*\n`
for (let x of jsons.result) {
caption += `
*π½πΎπΌπ±ππ΄:* *${x.apps_name}*
*π»πΈπ½πΊ:* ${x.apps_linkdl}
*π³π΄ππ²:* ${x.apps_desc}
`}
await conn.sendFile(m.chat, link, 'error.mp3', caption, m)}
//await conn.reply(m.chat, caption, m)}
if (command == 'uapkpro') {
let json = await fetch(`https://dhn-api.herokuapp.com/api/apk/uapkpro?apps=${text}&apikey=4ca83deeb14d61d16cf0`)
let jsons = await json.json()
let caption = `*βββγ ${command} γβββ*\n`
for (let x of jsons.result) {
caption += `
*π½πΎπΌπ±ππ΄:* *${x.apps_name}*
*π»πΈπ½πΊ:* ${x.apps_linkdl}
`}
await conn.sendFile(m.chat, link, 'error.mp3', caption, m)}
//await conn.reply(m.chat, caption, m)}
}
handler.command = ['apkdone', 'apkgoogle', 'apkmody', 'apkshub', 'happymod', 'hostapk', 'revdl', 'toraccino', 'uapkpro']
export default handler