mirror of
https://gitlab.com/qwerinope/qweribot.git
synced 2026-02-04 12:36:59 +01:00
small refactor and small lootbox rebalance SMILERS
This commit is contained in:
@@ -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)));
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user