[repo] reorganization

This commit is contained in:
synt-xerror
2026-03-16 18:32:57 -03:00
parent 04765868db
commit e60c5819e2
34 changed files with 1023 additions and 829 deletions

View File

@@ -0,0 +1,15 @@
import { enqueueDownload } from "../../download/queue.js";
import { botMsg } from "../../utils/botMsg.js";
import { logger } from "../../logger/logger.js";
export async function cmdAudio(msg, chat, chatId, args) {
if (!args[0]) {
await msg.reply(botMsg("❌ Você precisa informar um link.\n\nExemplo: `!audio https://youtube.com/...`"));
logger.warn("!audio sem link");
return;
}
await msg.reply(botMsg("⏳ Baixando o áudio, aguarde..."));
enqueueDownload("audio", args[0], msg, chatId);
logger.done("!audio", `enfileirado → ${args[0]}`);
}