diff --git a/main/src/client/NapCatClient/convert.ts b/main/src/client/NapCatClient/convert.ts index e5b80ff..562445a 100644 --- a/main/src/client/NapCatClient/convert.ts +++ b/main/src/client/NapCatClient/convert.ts @@ -62,7 +62,7 @@ export const messageElemToNapCatSendable = async (elem: SendableElem): Promise<{ type: elem.type, data: { file: elem.file, - summary: 'Q2TG ' + elem.type, + summary: env.IMAGE_SUMMARY || (`[Q2TG ${elem.type}]`), name: elem.type, }, } as any, diff --git a/main/src/models/env.ts b/main/src/models/env.ts index de05ea3..8505256 100644 --- a/main/src/models/env.ts +++ b/main/src/models/env.ts @@ -39,6 +39,7 @@ const configParsed = z.object({ CRV_KEY: z.string().optional(), DISABLE_FILE_UPLOAD_TIP: z.string().transform((v) => ['true', '1', 'yes'].includes(v.toLowerCase())).default('false'), + IMAGE_SUMMARY: z.string().optional(), LISTEN_PORT: z.string().regex(/^\d+$/).transform(Number).default('8080'),