add getloot command

This commit is contained in:
2025-08-26 20:22:13 +02:00
parent 9760df2947
commit 95cbdccd8c
4 changed files with 92 additions and 8 deletions

10
src/events/streamState.ts Normal file
View File

@@ -0,0 +1,10 @@
import { redis } from "bun";
import { eventSub, streamerId } from "main";
eventSub.onStreamOnline(streamerId, async _msg => {
await redis.set('streamIsLive', '1');
});
eventSub.onStreamOffline(streamerId, async _msg => {
await redis.del('streamIsLive');
});