//
//  core
//

const bus = require('./bus.js');

// global for debugging
const jabber = global.jabber = require('./bots/jabber');
const telegram = global.telegram = require('./bots/telegram');

bus.on('message', ({network, room, name, message}) => {
  console.log(`${network} "${room}": <${name}> ${message}`);

  if (network === 'JABBER') {
    telegram.send({name, message});
  }

  if (network === 'TELEGRAM') {
    jabber.send({name, message});
  }
});

@@ -43,16 +43,65 @@
 .js');%0A%0A
+const __DEV__ = process.env.NODE_ENV === 'dev';%0A%0A
 // globa
@@ -293,16 +293,35 @@
 %7D) =%3E %7B%0A
+  if (__DEV__) %7B%0A  
   consol
@@ -372,16 +372,20 @@
 sage%7D%60);
+%0A  %7D
 %0A%0A  if (

add visible the chat messages in the terminal only in dev-mode