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

@@ -1,10 +1,13 @@
import { redis } from "bun";
import { sendMessage } from "commands";
import { eventSub, streamerId } from "main";
import { sendMessage } from "lib/commandUtils";
import { eventSub } from "index";
import { streamerId } from "main";
import { sendDiscordMessage } from "web/discordConnection";
import { redis } from "lib/redis";
eventSub.onStreamOnline(streamerId, async msg => {
await redis.set('streamIsLive', '1');
await sendMessage(`${msg.broadcasterDisplayName.toUpperCase()} IS LIVE! START DIGGING!`);
await sendDiscordMessage({ message: 'live' });
});
eventSub.onStreamOffline(streamerId, async msg => {