venom-bot
Version:
Venom is a high-performance system developed with JavaScript to create a bot for WhatsApp, support for creating any interaction, such as customer service, media sending, sentence recognition based on artificial intelligence and all types of design archite
16 lines • 465 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.sleep = void 0;
/**
* Pauses the execution for a specified amount of time.
* @param time The duration to sleep in milliseconds.
*/
function sleep(time) {
try {
// Create a promise that resolves after the specified time
return new Promise((resolve) => setTimeout(resolve, time));
}
catch { }
}
exports.sleep = sleep;
//# sourceMappingURL=sleep.js.map