cb.setTimeout(func, msecs)

calls function func after timeout of msecs. It returns an id which can be used to cancel the timeout.

Example Code

This example will print “hello world” in the chat every 10 seconds.

function callme() {
    cb.sendNotice("hello world");
    cb.setTimeout(callme, 10000)
}
cb.setTimeout(callme, 10000)