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

Commit

Permalink
kisah nabi
Browse files Browse the repository at this point in the history
  • Loading branch information
thoriqazzikraa committed Mar 7, 2022
1 parent 8186d86 commit 54dc3bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
8 changes: 3 additions & 5 deletions HandleMsg.js
Original file line number Diff line number Diff line change
Expand Up @@ -2133,11 +2133,10 @@ module.exports = HandleMsg = async (urbae, message) => {
break
case prefix + 'kisahnabi':
if (args.length == 0) return urbae.reply(from, `Kirim perintah ${prefix}kisahnabi nama nabi\nContoh : ${prefix}kisahnabi adam`, id)
const dudo2 = body.slice(11)
axios.get(`https://kisahnabi-api-zhirrr.vercel.app/api/searchnabi?q=${dudo2}`)
apirizky.search.kisahnabi(q)
.then(async (res) => {
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}`
urbae.reply(from, textnab, id)
const textnab = `*- Nama:* ${res.result.name}\n*- Lahir:* ${res.result.thn_kelahiran}\n*- Umur:* ${res.result.usia}\n*- Kisah:*\n\n${res.result.description}`
await urbae.reply(from, textnab, id)
.catch((err) => {
urbae.reply(from, 'Maaf, nama nabi yang anda masukkan salah', id)
})
Expand Down Expand Up @@ -2450,7 +2449,6 @@ module.exports = HandleMsg = async (urbae, message) => {
} else {
urbae.reply(from, mess.error.St, id)
}
lists
break
case prefix + 'fakethumb':
if (isMedia && isImage || isQuotedImage) {
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"homepage": "https://github.com/Urbaexyz/whatsapp-bot",
"dependencies": {
"@open-wa/wa-automate": "^4.31.7",
"@open-wa/wa-automate": "^4.31.12",
"@phaticusthiccy/open-apis": "^1.6.0",
"app-root-path": "^3.0.0",
"axios": "^0.21.4",
Expand Down Expand Up @@ -69,8 +69,7 @@
"xfarr-api": "^1.0.3",
"xteam-api": "^0.0.7",
"yt-search": "^2.10.3",
"ytdl-core": "^4.11.0",
"yuzzu-api": "^1.0.2"
"ytdl-core": "^4.11.0"
},
"directories": {
"lib": "lib"
Expand Down

0 comments on commit 54dc3bb

Please sign in to comment.