mirror of
http://shenjack.top:5100/shenjack/icalingua-python-bot.git
synced 2024-11-23 20:45:06 +08:00
15 lines
341 B
TypeScript
15 lines
341 B
TypeScript
const fs = require('fs');
|
|
const path = require('path');
|
|
const fight = require('./md5-api.ts').fight;
|
|
|
|
// 从文件的 ./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();
|