aoijs / aoi.js

aoi.js - The most advanced string-based package to create a Discord Bot fast and powerful.
https://aoi.js.org
Apache License 2.0
332 stars 132 forks source link

Longer max duration for $setTimeout #554

Closed Mody-0 closed 6 months ago

Mody-0 commented 7 months ago

Featuring Type

Function

So, what is it about?

$setTimeout ends instantly if you set a duration above 21d which is kinda short so I was hoping if we can extend the maximum possible duration for $setTimeout to maybe a year or more? or maybe if it's not possible for $setTimeout to have that, is there any other alternative way? like a code or an addition function, maybe loops.. idk you guys are the experts in this

Code of Conduct

Faf4a commented 7 months ago

nvm.

Mody-0 commented 7 months ago

Well I'm on 6.7.5 (github)

Mody-0 commented 6 months ago

bump?

Faf4a commented 6 months ago

this can be fixed with some tricky stuff but

the limitation is basically the 32 bit int limit meaning 2147483647ms or about 25 days

Mody-0 commented 6 months ago

what does this mean? so we can't have longer than 25 days even after the fix?

Faf4a commented 6 months ago

after the fix you could yes

Mody-0 commented 6 months ago

can't it be longer than that?

Faf4a commented 6 months ago

can't it be longer than that?

Pushed a fix to the github version, should work now.

I'll reopen if any bugs occur.