URGENT - Set some pause in a Custom action

Hi,
I’m trying to pause for 5 sec in a custom action code.
I tried several option ( basic one with node.js is “sleep” ), but it is not working
any trick on how to pause ?

Thanks

note :
var sleep = require(‘sleep’);* *

Hey @smalldragoon !

You can find solutions on how to implement sleep in Javascript here https://stackoverflow.com/questions/951021/what-is-the-javascript-version-of-sleep

Hope this helps!

Thanks a lot, will work on it

Still on, for some reasons, I can no get the loop working into botpress while it works outside …