From d9862c08bf6174bc731782341878f1247eb2f9ec Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Sat, 30 Aug 2025 12:04:12 +0800 Subject: [PATCH] fix: wrong type: Buffer -> string in config.ts --- src/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index f39cc99..afa99d5 100644 --- a/src/config.ts +++ b/src/config.ts @@ -6,7 +6,7 @@ let config = { } try { - config = JSON.parse(await fs.readFile('thewhitesilk_config.json')) + config = JSON.parse(await fs.readFile('thewhitesilk_config.json', 'utf-8')) } catch (_e) { console.log(chalk.yellow("配置文件貌似不存在, 正在创建...")) await fs.writeFile('thewhitesilk_config.json', JSON.stringify(config))