small refactor and small lootbox rebalance SMILERS

This commit is contained in:
2025-11-15 02:35:39 +01:00
parent a205daacb7
commit 977082f38e
89 changed files with 300 additions and 203 deletions

View File

@@ -54,8 +54,9 @@ const activeRedeems = new Map<string, PointRedeem>;
/** Map of redeemname to twitch redeem ID */
const idMap = new Map<string, string>;
import { streamerApi, streamerId } from "main";
import { streamerId } from "main";
import logger from "lib/logger";
import { streamerApi } from "index";
const currentRedeems = new Map<string, string>;
await streamerApi.channelPoints.getCustomRewards(streamerId).then(a => a.map(b => currentRedeems.set(b.title, b.id)));

View File

@@ -1,4 +1,4 @@
import { sendMessage } from "commands";
import { sendMessage } from "lib/commandUtils";
import { getUserRecord } from "db/dbUser";
import { changeBalance } from "lib/changeBalance";
import PointRedeem from "pointRedeems";