Code help for my simple Node.js chatbot?

Register only one listener for subscription and do something like

switch (channel) {
case "channel1":
  // handle channel1
  break;
case "channel2":
  // handle channel2
  break;
  // and so on
}