https://discord.gg/botpress logo
`async function waitNSeconds(n) { return new Promi...
# 🌎general
r
Copy code
async function waitNSeconds(n) {
return new Promise((resolve) => {
setTimeout(() => {
resolve()
}, n)
})
}

// Usage
console.log('Start waiting...')
await waitNSeconds(3000) // 3000 = 3s
3 Views