Skip to content

Commit

Permalink
feat: 可修改图片 summary
Browse files Browse the repository at this point in the history
  • Loading branch information
clansty committed Dec 22, 2024
1 parent 40d6f81 commit 4cb1823
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main/src/client/NapCatClient/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions main/src/models/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),

Expand Down

0 comments on commit 4cb1823

Please sign in to comment.