Skip to content
This repository was archived by the owner on Oct 27, 2024. It is now read-only.

Commit 54dc3bb

Browse files
kisah nabi
1 parent 8186d86 commit 54dc3bb

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

HandleMsg.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -2133,11 +2133,10 @@ module.exports = HandleMsg = async (urbae, message) => {
21332133
break
21342134
case prefix + 'kisahnabi':
21352135
if (args.length == 0) return urbae.reply(from, `Kirim perintah ${prefix}kisahnabi nama nabi\nContoh : ${prefix}kisahnabi adam`, id)
2136-
const dudo2 = body.slice(11)
2137-
axios.get(`https://kisahnabi-api-zhirrr.vercel.app/api/searchnabi?q=${dudo2}`)
2136+
apirizky.search.kisahnabi(q)
21382137
.then(async (res) => {
2139-
const textnab = `Nama : *${res.data.nabi.nama}*\nLahir : *${res.data.nabi.lahir}*\nUmur : *${res.data.nabi.umur}*\nTempat : *${res.data.nabi.tempat}*\n\nKisah : ${res.data.nabi.kisah}`
2140-
urbae.reply(from, textnab, id)
2138+
const textnab = `*- Nama:* ${res.result.name}\n*- Lahir:* ${res.result.thn_kelahiran}\n*- Umur:* ${res.result.usia}\n*- Kisah:*\n\n${res.result.description}`
2139+
await urbae.reply(from, textnab, id)
21412140
.catch((err) => {
21422141
urbae.reply(from, 'Maaf, nama nabi yang anda masukkan salah', id)
21432142
})
@@ -2450,7 +2449,6 @@ module.exports = HandleMsg = async (urbae, message) => {
24502449
} else {
24512450
urbae.reply(from, mess.error.St, id)
24522451
}
2453-
lists
24542452
break
24552453
case prefix + 'fakethumb':
24562454
if (isMedia && isImage || isQuotedImage) {

package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"homepage": "https://github.com/Urbaexyz/whatsapp-bot",
2424
"dependencies": {
25-
"@open-wa/wa-automate": "^4.31.7",
25+
"@open-wa/wa-automate": "^4.31.12",
2626
"@phaticusthiccy/open-apis": "^1.6.0",
2727
"app-root-path": "^3.0.0",
2828
"axios": "^0.21.4",
@@ -69,8 +69,7 @@
6969
"xfarr-api": "^1.0.3",
7070
"xteam-api": "^0.0.7",
7171
"yt-search": "^2.10.3",
72-
"ytdl-core": "^4.11.0",
73-
"yuzzu-api": "^1.0.2"
72+
"ytdl-core": "^4.11.0"
7473
},
7574
"directories": {
7675
"lib": "lib"

0 commit comments

Comments
 (0)