Skip to content

Commit

Permalink
temporary
Browse files Browse the repository at this point in the history
  • Loading branch information
Guru322 committed Aug 13, 2024
1 parent 1ebb083 commit 9ca4c08
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 841 deletions.
434 changes: 0 additions & 434 deletions lib/scraper.js

This file was deleted.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,14 @@
"license": "Apache License 2.0",
"dependencies": {
"@adiwajshing/keyed-db": "^0.2.4",
"@bochilteam/scraper": "^4.0.22-alpha.0",
"@bochilteam/scraper": "^5.0.1",
"@google/generative-ai": "0.1.3",
"@shineiichijo/marika": "^2.0.6",
"@vitalets/google-translate-api": "^9.2.0",
"@whiskeysockets/baileys": "^6.6.0",
"@xct007/frieren-scraper": "*",
"@xct007/tiktok-scraper": "*",
"acrcloud": "^1.4.0",
"api-dylux": "^1.6.9",
"aptoide-scraper": "^1.0.1",
"awesome-phonenumber": "^3.4.0",
"axios": "^1.4.0",
Expand Down
12 changes: 7 additions & 5 deletions plugins/dl-facebook.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import fg from 'api-dylux'
import fetch from "node-fetch"

const handler = async (m, { conn, args, usedPrefix, command }) => {
if (!args[0]) {
throw `✳️ Please send the link of a Facebook video\n\nπŸ“Œ EXAMPLE :\n*${usedPrefix + command}* https://www.facebook.com/Ankursajiyaan/videos/981948876160874/?mibextid=rS40aB7S9Ucbxw6v`
throw `✳️ Please send the link of a Facebook video\n\nπŸ“Œ EXAMPLE :\n*${usedPrefix + command}* https://fb.watch/tXadtHWTjf/?mibextid=lbJOhI7Z2ZfpRMIi`
}

const urlRegex =
Expand All @@ -11,16 +11,18 @@ const handler = async (m, { conn, args, usedPrefix, command }) => {
throw '⚠️ PLEASE GIVE A VALID URL.'
}

let url = `https://api.guruapi.tech/fbvideo?url=${args[0]}`

m.react(rwait)

try {
const result = await fg.fbdl(args[0])
const result = await fetch(url)
const tex = `
⊱ ─── {* GURU FBDL*} ─── ⊰
↳ *VIDEO TITLE:* ${result.title}
↳ *VIDEO TITLE:* ${result.result.title}
⊱ ────── {⋆♬⋆} ────── ⊰`

const response = await fetch(result.videoUrl)
const response = await fetch(result.result.hd)
const arrayBuffer = await response.arrayBuffer()
const videoBuffer = Buffer.from(arrayBuffer)

Expand Down
5 changes: 3 additions & 2 deletions plugins/dl-gdrive.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import fg from 'api-dylux'
/* import fg from 'api-dylux'
let handler = async (m, { conn, args, usedPrefix, command }) => {
if (!args[0]) throw `✳️ Enter a Google Drive link`
m.react(rwait)
Expand Down Expand Up @@ -27,4 +27,5 @@ handler.command = ['gdrive']
handler.credit = true
handler.premium = true
export default handler
export default handler */

325 changes: 0 additions & 325 deletions plugins/dl-play2.js

This file was deleted.

Loading

0 comments on commit 9ca4c08

Please sign in to comment.