Skip to content

Commit

Permalink
Keep console window running
Browse files Browse the repository at this point in the history
  • Loading branch information
renandecarlo committed May 18, 2022
1 parent 9f736c7 commit 70c02f0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
const auth = require('./auth');
const readline = require('readline');

(async () => {
if(await auth.signin()) {
require('./whatsapp-bot');
require('./geraldo-listener');
}
})()
})();

/* Keep console running */
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});

0 comments on commit 70c02f0

Please sign in to comment.