This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const axios = require("axios"); | |
| const Youtube = require("youtube-search-api"); | |
| const { createReadStream, unlinkSync } = require("fs-extra"); | |
| function sleep(ms) { | |
| return new Promise(resolve => setTimeout(resolve, ms)); | |
| } | |
| async function getDownloadUrlFromOceansaver(link, maxRetries = 5, retryDelayMs = 5000) { | |
| if (!link) throw new Error("Thiếu link YouTube"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const axios = require("axios"); | |
| const Youtube = require("youtube-search-api"); | |
| const { createReadStream, unlinkSync } = require("fs-extra"); | |
| function sleep(ms) { | |
| return new Promise(resolve => setTimeout(resolve, ms)); | |
| } | |
| async function getDownloadUrlFromOceansaver(link, maxRetries = 5, retryDelayMs = 5000) { | |
| if (!link) throw new Error("Thiếu link YouTube"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const axios = require("axios"); | |
| const Youtube = require("youtube-search-api"); | |
| const { createReadStream, unlinkSync } = require("fs-extra"); | |
| function sleep(ms) { | |
| return new Promise(resolve => setTimeout(resolve, ms)); | |
| } | |
| async function getDownloadUrlFromOceansaver(link, maxRetries = 5, retryDelayMs = 5000) { | |
| if (!link) throw new Error("Thiếu link YouTube"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fs = require('fs'); | |
| const ytdl = require('@distube/ytdl-core'); | |
| const moment = require("moment-timezone"); | |
| const Youtube = require('youtube-search-api'); | |
| const { createReadStream, unlinkSync, statSync } = require("fs-extra"); | |
| async function downloadMusicFromYoutube(link, path) { | |
| var timestart = Date.now(); | |
| if (!link) return 'Thiếu link'; | |
| return new Promise((resolve, reject) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fs = require('fs'); | |
| const ytdl = require('@distube/ytdl-core'); | |
| const moment = require("moment-timezone"); | |
| const Youtube = require('youtube-search-api'); | |
| const { createReadStream, unlinkSync, statSync } = require("fs-extra"); | |
| async function downloadMusicFromYoutube(link, path) { | |
| var timestart = Date.now(); | |
| if (!link) return 'Thiếu link'; | |
| return new Promise((resolve, reject) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fs = require('fs'); | |
| const ytdl = require('@distube/ytdl-core'); | |
| const moment = require("moment-timezone"); | |
| const Youtube = require('youtube-search-api'); | |
| const { createReadStream, unlinkSync, statSync } = require("fs-extra"); | |
| async function downloadMusicFromYoutube(link, path) { | |
| var timestart = Date.now(); | |
| if (!link) return 'Thiếu link'; | |
| return new Promise((resolve, reject) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| console.log(`[KIỂM TRA] Phiên bản Node.js thực sự đang chạy file này là: ${process.version}`); | |
| const fs = require('fs'); | |
| const ytdl = require('@distube/ytdl-core'); | |
| const moment = require("moment-timezone"); | |
| const Youtube = require('youtube-search-api'); | |
| const { createReadStream, unlinkSync, statSync } = require("fs-extra"); | |
| async function downloadMusicFromYoutube(link, path) { | |
| var timestart = Date.now(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| this.config = { | |
| name: "vd", | |
| version: "1.0.0", | |
| hasPermission: 0, | |
| credits: "Gaudev", | |
| description: "Xem video trai, gái, Anime", | |
| commandCategory: "Ảnh", | |
| usages: "[trai | gái | anime]", | |
| cooldowns: 0 | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports.config = { | |
| name: 'file', | |
| version: '1.1.1', | |
| hasPermssion: 3, | |
| credits: 'Niio-team (DC-Nam)', | |
| description: 'xem item trong folder, xóa, xem file', | |
| commandCategory: 'Admin', | |
| usages: '[đường dẫn]', | |
| cooldowns: 0, | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports.config = { | |
| name: 'file', | |
| version: '1.1.1', | |
| hasPermssion: 3, | |
| credits: 'Niio-team (DC-Nam)', | |
| description: 'xem item trong folder, xóa, xem file', | |
| commandCategory: 'Admin', | |
| usages: '[đường dẫn]', | |
| cooldowns: 0, | |
| }; |
OlderNewer