Works, but has a bug when combined with scripts, which move the bot just like "Follow Me", that it moves the bot to the default channel, once one switches channels. Especially with timeouts. The workaround is to add this for the move code around line 111
var timeout = 100;
if(config.waitSomeTime){
timeout = 1000 * (config.time || 1)
}
clearTimeout(timeMove);
timeMove = setTimeout(function(){
if(checkIfEmpty(backend.getCurrentChannel())){
moveBack();
}
}, timeout);
This adds at least a timeout of 100 ms (to allow all other scripts to move the bot around before firering the "move to default channel" code) and checks again if the current channel is empty, before executing the routine.
I would have actually created a pull request, but it looks like this script is not in your github repos.
Feel free to add this