diff --git a/index.js b/index.js index e960279..faed579 100644 --- a/index.js +++ b/index.js @@ -100,12 +100,13 @@ const main = () => { console.log(`-----> Call forward removed successfully.`); hook.send(`:no_entry: **Call Forward Removed** :no_entry:\nExtension **${cf.extension}** had a **${cfTypes[cf.type]}** call forward to **${cf.target}** The call forward has been removed.`); }) - } - setTimeout(main, 1000); // Repeat every 60 seconds + } + setTimeout(main, 1000); // Repeat every 60 seconds + }; }); }); - }); -}; + }) +} const startup = async () => { sock.connect().then(() => {