[fix] tirando o bot_prefix e melhorando o script de update

This commit is contained in:
synt-xerror
2026-03-24 01:35:55 -03:00
parent 95767ee0d5
commit 05f521d78b
3 changed files with 59 additions and 53 deletions

View File

@@ -13,7 +13,7 @@
* Cada plugin decide por conta própria se age ou ignora.
*/
import { CHATS, BOT_PREFIX } from "../config.js";
import { CHATS } from "../config.js";
import { getChatId } from "../utils/getChatId.js";
import { buildApi } from "./pluginApi.js";
import { pluginRegistry } from "./pluginLoader.js";
@@ -29,7 +29,7 @@ export async function handleMessage(msg) {
// CHATS vazio = aceita todos os chats
if (CHATS.length > 0 && !CHATS.includes(chatId)) return;
const ctx = await buildMessageContext(msg, chat, BOT_PREFIX);
const ctx = await buildMessageContext(msg, chat);
logger.msg(ctx);
const api = buildApi({ msg, chat, client, pluginRegistry });