I am trying to make a chatbot for the web game https://skribbl.io but when my javascript script is run, it only runs once.
function send() {
var ic = document.getElementById("inputChat");
ic.value = "ChatBot online";
ic.parentNode.dispatchEvent(new Event('submit', {
bubbles: false,
cancelable: false,
}));
}
setInterval(send(), 1000);