This commit is contained in:
shenjack 2024-05-09 00:41:41 +08:00
parent 177ff4692f
commit 83b163b685
Signed by: shenjack
GPG Key ID: 7B1134A979775551
3 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
const fs = require('fs'); const fs = require('fs');
const path = require('path'); const path = require('path');
import { fight } from "./md5-api.mts"; import { fight } from "./md5-api";
// 从文件的 ./input.txt 中读取输入 // 从文件的 ./input.txt 中读取输入
// 然后丢给 md5.js // 然后丢给 md5.js

View File

@ -43,7 +43,7 @@ def on_ica_message(msg: IcaNewMessage, client: IcaClient) -> None:
with open(root_path / "md5" / "input.txt", "w") as f: with open(root_path / "md5" / "input.txt", "w") as f:
f.write(names) f.write(names)
# 执行 node md5.js # 执行 node md5.js
runner_path = root_path / "md5" / "runs.mts" runner_path = root_path / "md5" / "runs.ts"
input_path = root_path / "md5" / "input.txt" input_path = root_path / "md5" / "input.txt"
result = subprocess.run( result = subprocess.run(
["node", runner_path.absolute(), input_path.absolute()], ["node", runner_path.absolute(), input_path.absolute()],