mirror of
https://github.com/SophiaAtkinson/discord-hedgedoc-md.git
synced 2025-06-26 22:37:41 -07:00
the fix broke it, im a great dev :3
This commit is contained in:
15
index.js
15
index.js
@ -132,15 +132,14 @@ async function checkForUpdates(config) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Main loop
|
// Main loop
|
||||||
async function poll() {
|
(async () => {
|
||||||
|
console.log('🚀 Starting poller...');
|
||||||
for (const config of configs) {
|
for (const config of configs) {
|
||||||
await checkForUpdates(config);
|
await checkForUpdates(config);
|
||||||
}
|
}
|
||||||
setTimeout(poll, pollIntervalMs);
|
setInterval(async () => {
|
||||||
}
|
for (const config of configs) {
|
||||||
|
await checkForUpdates(config);
|
||||||
|
}
|
||||||
(async () => {
|
}, pollIntervalMs);
|
||||||
console.log('🚀 Starting poller...');
|
|
||||||
await poll();
|
|
||||||
})();
|
})();
|
||||||
|
Reference in New Issue
Block a user