Feat: pushover notif
This commit is contained in:
@@ -3,6 +3,7 @@ import { DEFAULT_WATCH_SETTINGS, fetchStripchatStatus } from '@stream-control/sh
|
||||
import { config } from './config.ts';
|
||||
import { targetsRepo } from './db.ts';
|
||||
import { hub } from './hub.ts';
|
||||
import { notifyTargetLive } from './pushover.ts';
|
||||
import { startTargetRecording } from './recorder.ts';
|
||||
|
||||
/**
|
||||
@@ -122,6 +123,7 @@ class Watchlist {
|
||||
// Seul le passage effectif au flux public déclenche une notification.
|
||||
if (next === 'public' && target.state !== 'public' && updated.notify) {
|
||||
hub.publishTargetLive(updated);
|
||||
void notifyTargetLive(updated.label ?? updated.username, updated.url);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user