I am making a Kahoot Bot and I want it to have a feature where I can have the user to choose an answer. I am using readline to grab user input (example code of what I am doing):
var rl = require("readline").createInterface({
input: process.stdin,
output: process.stdout
});
rl.question('Type in your answer!\n', (answer) => {
console.log(answer)
})
but each player (bot) is separated and is not like in 1 cluster. (Cluster as in each bot has the same mind as another one, a.k.a it doesn't spam my console.) I've tried using emitters but I have no idea how to use EventEmitter so I stopped using them. So if I try to do the above code (with 100+ bots), I end up getting my whole console spammed with duplicate characters and lines. How can I hide this?