socket-bot/ica-rs/plugins/md5/runs.mts
2024-05-09 21:51:01 +08:00

18 lines
434 B
TypeScript

// const fs = require('fs');
// const path = require('path');
import fs from 'fs';
import path from 'path';
// const fight = require('./md5-api.ts').fight;
import { fight } from './md5-api.ts';
// 从文件的 ./input.txt 中读取输入
// 然后丢给 md5.js
async function main() {
const input = fs.readFileSync(path.join(__dirname, 'input.txt'), 'utf8');
const result = await fight(input);
console.log(result);
}
main();