Initial commit: KeySelector implementation

This commit is contained in:
Jannik committed 2026-08-26 00:32:17 +02:00
commit 48cdda01ca
30 files changed
+2272

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
// Simple worker to simulate quota polling
const ntfyUrl = process.env.NTFY_URL;
function checkQuota() {
// In production, check API quotas for Last.fm, GetSongBPM, AcoustID
// and send a push notification via ntfy if they run low.
console.log('[Worker] Checking API quotas...');
}
// Check daily
setInterval(checkQuota, 24 * 60 * 60 * 1000);
// Run once on startup
setTimeout(checkQuota, 5000);