Add immediate flag to timers

This commit is contained in:
Minz committed 2023-11-07 15:06:11 +01:00
1 parent 7f020dd179
commit 2e86d98cc1
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -48,6 +48,7 @@ client.on(Events.ClientReady, () => {
timer.tick(client, timer);
}, timer.timeout);
timer.instance = timerInstance;
if (timer.immediate) { timer.tick(client, timer) }
}
});
+1 -1
View File
@@ -1,6 +1,6 @@
module.exports = {
timeout: 1000,
global: true,
immediate: true,
name: 'Test timer every 1 sec',
data: {
i: 0