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 path = require("path"); | |
| const axios = require("axios"); | |
| const FormData = require("form-data"); | |
| const configPath = path.join(__dirname, "data/command-notfound.json"); | |
| async function getStream(url) { | |
| const res = await axios({ url, responseType: "stream" }); | |
| const pathname = new URL(url).pathname; |
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
| 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('@ybd-project/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
| module.exports.config = { | |
| "name": "pending", | |
| "version": "1.0.6", | |
| "credits": "Niiozic", | |
| "hasPermssion": 3, | |
| "description": "Quản lý tin nhắn chờ của bot", | |
| "commandCategory": "Admin", | |
| "usages": "[u] [t] [a]", | |
| "cooldowns": 5 | |
| }; |
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('@ybd-project/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
| 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('@ybd-project/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
| 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('@ybd-project/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
| const fs = require('fs'); | |
| const ytdl = require('@distube/ytdl-core'); | |
| const { resolve } = require('path'); | |
| const moment = require("moment-timezone"); | |
| const Youtube = require('youtube-search-api'); | |
| const axios = require('axios'); | |
| 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
| const fs = require('fs'); | |
| const ytdl = require('@distube/ytdl-core'); | |
| const { resolve } = require('path'); | |
| const moment = require("moment-timezone"); | |
| const Youtube = require('youtube-search-api'); | |
| const axios = require('axios'); | |
| 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
| const fs = require('fs'); | |
| const ytdl = require('@distube/ytdl-core'); | |
| const { resolve } = require('path'); | |
| const moment = require("moment-timezone"); | |
| const Youtube = require('youtube-search-api'); | |
| const axios = require('axios'); | |
| const { createReadStream, unlinkSync, statSync } = require("fs-extra"); | |
| async function downloadMusicFromYoutube(link, path) { | |
| var timestart = Date.now(); |