This file contains 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
// Este plugin fue adaptado de https://github.com/theh2so4/Mystic-Plugins/blob/main/tools/general/getfile/general-getfile.js | |
const fs = require('fs').promises; | |
const path = require('path'); | |
const { bot } = require('../lib'); | |
// Recursivo | |
const searchFile = async (directory, keyword) => { | |
const results = []; | |
try { |
This file contains 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 { bot } = require('../lib'); | |
const fs = require('fs'); | |
const path = require('path'); | |
const { chromium } = require('playwright'); | |
const dotenv = require('dotenv'); | |
// Preferencias config.env | |
dotenv.config(); | |
const TEMP_DIRECTORY = process.env.TEMP_DIRECTORY || 'tmp/WEB/'; | |
const USER_AGENT = process.env.USER_AGENT || 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36'; |
This file contains 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
// MR. De la Comunidad para la Comunidad. Prohibida su Venta. | |
// El Software se proporciona bajo los términos de la Licencia MIT, excepto que usted no puede: | |
// 1. Vender, revender o arrendar el Software. | |
// 2. Cobrar a otros por el acceso, la distribución o cualquier otro uso comercial del Software. | |
// 3. Usar el Software como parte de un producto comercial o una oferta de servicio. | |
// IAV2 | |
const fs = require('fs'); | |
const fsp = fs.promises; | |
const path = require('path'); |
This file contains 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
// MR. De la Comunidad para la Comunidad. Prohibida su Venta. | |
// El Software se proporciona bajo los términos de la Licencia MIT, excepto que usted no puede: | |
// 1. Vender, revender o arrendar el Software. | |
// 2. Cobrar a otros por el acceso, la distribución o cualquier otro uso comercial del Software. | |
// 3. Usar el Software como parte de un producto comercial o una oferta de servicio. | |
// IA V 2 | |
const fs = require('fs').promises; | |
const path = require('path'); | |
const os = require('os'); |
This file contains 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
// MR. De la Comunidad para la Comunidad. Prohibida su Venta. | |
// El Software se proporciona bajo los términos de la Licencia MIT, excepto que usted no puede: | |
// 1. Vender, revender o arrendar el Software. | |
// 2. Cobrar a otros por el acceso, la distribución o cualquier otro uso comercial del Software. | |
// 3. Usar el Software como parte de un producto comercial o una oferta de servicio. | |
const { bot } = require('../lib'); | |
const fs = require('fs'); | |
const path = require('path'); |
This file contains 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 { bot } = require('../lib'); | |
const os = require('os'); | |
const { exec } = require('child_process'); | |
// tiempo | |
function formatUptime(uptime) { | |
const seconds = Math.floor(uptime % 60); | |
const minutes = Math.floor((uptime / 60) % 60); | |
const hours = Math.floor((uptime / 3600) % 24); | |
return `${hours} horas, ${minutes} minutos, ${seconds} segundos`; |
This file contains 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 { bot, isUrl } = require('../lib'); | |
const fs = require('fs'); | |
const path = require('path'); | |
const { exec } = require('child_process'); | |
bot( | |
{ | |
pattern: 'dla ?(.*)', | |
fromMe: true, | |
desc: 'Download videos using yt-dlp or curl with custom flags, and update yt-dlp', |