fix: initRank

main
spacemeowx2 2022-11-18 20:32:30 +08:00 committed by imspace
parent ecdf0dd4da
commit de8e09b143
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
*/
import { flags } from "./deps.ts";
import { Splatnet3 } from "./src/splatnet3.ts";
import { gameId } from "./src/utils.ts";
import { gameId, readline } from "./src/utils.ts";
import { FileStateBackend, Profile } from "./src/state.ts";
import { BattleListType } from "./src/types.ts";
import { RANK_PARAMS } from "./src/RankTracker.ts";
@ -60,7 +60,7 @@ console.log(
);
while (true) {
const userInput = await env.readline();
const userInput = await readline();
const [rank, point] = userInput.split(",");
const pointNumber = parseInt(point);