Initial commit: KeySelector implementation
This commit is contained in:
commit
48cdda01ca
30 files changed
+2272
No files matched your search
@@ -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);
|
||||
Reference in new issue
Block a user