@neoxr/wb 2.1.4 → 2.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@neoxr/wb",
3
- "version":"2.1.4",
3
+ "version":"2.2.6",
4
4
  "description":"Simplicity WhatsApp Bot (Baileys)",
5
5
  "main":"index.js",
6
6
  "scripts":{
@@ -27,7 +27,7 @@
27
27
  "dependencies":{
28
28
  "@neoxr/api": "^1.5.3",
29
29
  "@neoxr/helper": "^1.2.1",
30
- "@neoxr/ytdl-core":"npm:@ybd-project/ytdl-core",
30
+ "@neoxr/ytdl-core":"latest",
31
31
  "awesome-phonenumber":"~2.59.0",
32
32
  "axios":"~0.24.0",
33
33
  "chalk":"4.1.0",
package/system/scraper.js CHANGED
@@ -3,7 +3,7 @@ const cheerio = require('cheerio')
3
3
  const fetch = require('node-fetch')
4
4
  const FormData = require('form-data')
5
5
  const { fromBuffer } = require('file-type')
6
- const YT = new(require('./youtube'))
6
+ // const YT = new(require('./youtube'))
7
7
  const creator = `@neoxr.js – Wildan Izzudin`
8
8
  const { upload, short } = require('@neoxr/helper')
9
9
 
@@ -365,17 +365,17 @@ module.exports = class Scraper {
365
365
  * @param {String} url
366
366
  * @param {String} type
367
367
  */
368
- youtube = async (url, type = 'audio') => {
369
- const json = (type === 'audio') ? await YT.getmp3(url) : await YT.getmp4(url)
370
- return json
371
- }
368
+ // youtube = async (url, type = 'audio') => {
369
+ // const json = (type === 'audio') ? await YT.getmp3(url) : await YT.getmp4(url)
370
+ // return json
371
+ // }
372
372
 
373
373
  /* Youtube Fetcher by Keyword/Query
374
374
  * @param {String} url
375
375
  * @param {String} type
376
376
  */
377
- play = async (q, type = 'audio') => {
378
- const json = (type === 'audio') ? await YT.audio(q) : await YT.video(q)
379
- return json
380
- }
377
+ // play = async (q, type = 'audio') => {
378
+ // const json = (type === 'audio') ? await YT.audio(q) : await YT.video(q)
379
+ // return json
380
+ // }
381
381
  }