From 83b163b685423c8fcbd50173513bcb9cd241ff16 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Thu, 9 May 2024 00:41:41 +0800 Subject: [PATCH] whyyy --- ica-rs/plugins/md5/{md5-api.mts => md5-api.ts} | 0 ica-rs/plugins/md5/{runs.mts => runs.ts} | 2 +- ica-rs/plugins/namerena.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename ica-rs/plugins/md5/{md5-api.mts => md5-api.ts} (100%) rename ica-rs/plugins/md5/{runs.mts => runs.ts} (88%) diff --git a/ica-rs/plugins/md5/md5-api.mts b/ica-rs/plugins/md5/md5-api.ts similarity index 100% rename from ica-rs/plugins/md5/md5-api.mts rename to ica-rs/plugins/md5/md5-api.ts diff --git a/ica-rs/plugins/md5/runs.mts b/ica-rs/plugins/md5/runs.ts similarity index 88% rename from ica-rs/plugins/md5/runs.mts rename to ica-rs/plugins/md5/runs.ts index 8a11829..cdf613a 100644 --- a/ica-rs/plugins/md5/runs.mts +++ b/ica-rs/plugins/md5/runs.ts @@ -1,7 +1,7 @@ const fs = require('fs'); const path = require('path'); -import { fight } from "./md5-api.mts"; +import { fight } from "./md5-api"; // 从文件的 ./input.txt 中读取输入 // 然后丢给 md5.js diff --git a/ica-rs/plugins/namerena.py b/ica-rs/plugins/namerena.py index 979b958..ca1b083 100644 --- a/ica-rs/plugins/namerena.py +++ b/ica-rs/plugins/namerena.py @@ -43,7 +43,7 @@ def on_ica_message(msg: IcaNewMessage, client: IcaClient) -> None: with open(root_path / "md5" / "input.txt", "w") as f: f.write(names) # 执行 node md5.js - runner_path = root_path / "md5" / "runs.mts" + runner_path = root_path / "md5" / "runs.ts" input_path = root_path / "md5" / "input.txt" result = subprocess.run( ["node", runner_path.absolute(), input_path.absolute()],