From 849ce4ccf844dc51752c086b2ae761859be98c49 Mon Sep 17 00:00:00 2001 From: idranme Date: Sat, 3 Aug 2024 13:50:16 +0800 Subject: [PATCH] 1.7.2 --- package.json | 2 +- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3ddfe2a..7c30819 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "koishi-plugin-waifu", "description": "Marry with your groupmate", - "version": "1.7.1", + "version": "1.7.2", "main": "lib/index.js", "typings": "lib/index.d.ts", "files": [ diff --git a/src/index.ts b/src/index.ts index feaad1c..086fd77 100644 --- a/src/index.ts +++ b/src/index.ts @@ -246,7 +246,7 @@ export function apply(ctx: Context, cfg: Config) { user: selected.user }) const reply = await targetSession.prompt(session => { - return h.select(session.elements, 'text').join('') + return h.select(session.elements, 'text').join('').trim() }, { timeout: 90 * Time.second }) if (reply === '我愿意') {