mirror of
https://gitlab.com/qwerinope/qweribot.git
synced 2026-02-04 13:36:58 +01:00
add onRaided event and now ignoring chatters from shared chats
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
import { redis } from "bun";
|
||||
import { sendMessage } from "commands";
|
||||
import { eventSub, streamerId } from "main";
|
||||
|
||||
eventSub.onStreamOnline(streamerId, async _msg => {
|
||||
eventSub.onStreamOnline(streamerId, async msg => {
|
||||
await redis.set('streamIsLive', '1');
|
||||
await sendMessage(`${msg.broadcasterDisplayName} IS LIVE! START DIGGING!`);
|
||||
});
|
||||
|
||||
eventSub.onStreamOffline(streamerId, async _msg => {
|
||||
eventSub.onStreamOffline(streamerId, async msg => {
|
||||
await redis.del('streamIsLive');
|
||||
await sendMessage(`${msg.broadcasterDisplayName} IS OFFLINE! NO MORE FREE LOOT!`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user