• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

EN Functions timeouts

Mmoi

Active Member
Contributor
Hi,

Just a little question, is it possible to change the timeout of a command?
The thing is: I have a function that migrates data from different storage provider but it require some time (IO). That is, the command is sent via chat and timeout on bots with a lot af data to migrate.

Is there something to do (a trick, maybe)?

Mmoi
 

Mmoi

Active Member
Contributor
I figured this out, just modified the function to be resumable and then called a setTimeout when reaching the function 5 second timeout.
 
Top