From 98c8b8d0972c9cb9f457d66b9480b5b49977de1d Mon Sep 17 00:00:00 2001 From: Kibi Kelburton Date: Sat, 18 Jul 2026 00:22:16 +0200 Subject: [PATCH] fg --- src/inc/trigger/help.mjs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/inc/trigger/help.mjs b/src/inc/trigger/help.mjs index 1fd26f8..4081e84 100644 --- a/src/inc/trigger/help.mjs +++ b/src/inc/trigger/help.mjs @@ -1,4 +1,5 @@ import { getLevel } from "../admin.mjs"; +import cfg from "../config.mjs"; export default async self => { return [{ @@ -45,10 +46,11 @@ export default async self => { // Deduplicate and sort const uniqueCommands = [...new Set(availableCommands)].sort(); + const trigger = cfg.main.trigger || "!w"; if (uniqueCommands.length === 0) { - availableCommands.push(e.type === 'matrix' ? "!w -sfw/nsfw -t tag1,tag2,tag3" : "!w or attachment"); + availableCommands.push(e.type === 'matrix' ? `${trigger} -sfw/nsfw -t tag1,tag2,tag3` : `${trigger} or attachment`); } else { - availableCommands.push(e.type === 'matrix' ? "!w -sfw/nsfw -t tag1,tag2,tag3" : "!w or attachment"); + availableCommands.push(e.type === 'matrix' ? `${trigger} -sfw/nsfw -t tag1,tag2,tag3` : `${trigger} or attachment`); } // Re-sort to include manually added command