[repo] desacoplamento e maior coesão
This commit is contained in:
synt-xerror
2026-03-13 11:30:34 -03:00
parent fe95e77a68
commit 88a7abba5d
19 changed files with 439 additions and 393 deletions

20
src/commands/info.js Normal file
View File

@@ -0,0 +1,20 @@
import { botMsg } from "../utils/botMsg.js";
export async function processarInfo(cmd, chat) {
switch(cmd) {
case "ping":
await chat.sendMessage(botMsg("> `!ping`\nResponde pong."));
break;
case "video":
await chat.sendMessage(botMsg("> `!video <link>`\nBaixa vídeo da internet."));
break;
case "audio":
await chat.sendMessage(botMsg("> `!audio <link>`\nBaixa áudio da internet."));
break;
case "figurinha":
await chat.sendMessage(botMsg("`!figurinha`\nTransforma imagem/GIF em sticker."));
break;
default:
await chat.sendMessage(botMsg(`❌ Comando '${tokens[1]}' não encontrado.`));
}
}