mirror of
https://gitlab.com/qwerinope/qweribot.git
synced 2026-02-04 13:36:58 +01:00
add getloot command
This commit is contained in:
10
src/events/streamState.ts
Normal file
10
src/events/streamState.ts
Normal 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');
|
||||
});
|
||||
Reference in New Issue
Block a user