// dependencies
// Module for translation
var _ = require('lomath')

// Development process, testing after starting server with "node lib/io_start.js"
var client = require('../lib/client.js')
global.gPass = client.gPass

global.gPass({
  input: "hola amigos",
  to: 'ai.py',
  intent: 'nlp.translate'
}).then(console.log)
// hello friends


// deploy feature: export for bot
module.exports = function(robot) {
  // menu
  robot.respond(/translate\s*$/i, function(res) {
    res.send('`translate <text>`')
  })

  // translate
  robot.respond(/translate\s*(.+)/i, function(res) {
    var str = res.match[1];
    global.gPass({
        input: str,
        to: 'nlp.py',
        intent: 'translate'
      })
      .then(function(reply) {
        res.send(reply.output)
      })
  })

}

@@ -62,16 +62,19 @@
 math')%0A%0A
+// 
 // Devel
@@ -147,16 +147,19 @@
 art.js%22%0A
+// 
 var clie
@@ -191,16 +191,19 @@
 nt.js')%0A
+// 
 global.g
@@ -223,16 +223,19 @@
 .gPass%0A%0A
+// 
 global.g
@@ -241,18 +241,21 @@
 gPass(%7B%0A
+//
   
+ 
 input: %22
@@ -268,16 +268,19 @@
 migos%22,%0A
+// 
   to: 'a
@@ -286,16 +286,19 @@
 ai.py',%0A
+// 
   intent
@@ -315,16 +315,19 @@
 nslate'%0A
+// 
 %7D).then(
@@ -341,16 +341,19 @@
 .log)%0A//
+ //
  hello f

comment out translate code