bashor
11/16/2015, 10:58 AMylemoigne
11/16/2015, 12:53 PMjkbbwr
11/20/2015, 3:31 PMfun main(robot: dynamic) {
robot.hear("kt", { msg->
msg.send("hi from kt")
})
}
jkbbwr
11/20/2015, 3:31 PMyole
11/20/2015, 3:32 PMbashor
11/20/2015, 3:32 PMjkbbwr
11/20/2015, 3:32 PMjkbbwr
11/20/2015, 3:32 PMbashor
11/20/2015, 3:32 PMjkbbwr
11/20/2015, 3:34 PMbashor
11/20/2015, 3:52 PMbashor
11/20/2015, 3:52 PMbashor
11/20/2015, 3:56 PMbashor
11/20/2015, 3:56 PMjkbbwr
11/20/2015, 6:16 PMbashor
11/20/2015, 6:17 PMjkbbwr
11/20/2015, 6:18 PMbashor
11/20/2015, 6:20 PMjkbbwr
11/20/2015, 6:20 PMjkbbwr
11/20/2015, 6:21 PMjkbbwr
11/20/2015, 6:22 PMbashor
11/20/2015, 6:22 PMjkbbwr
11/20/2015, 6:22 PM[Fri Nov 20 2015 15:54:49 GMT+0000 (GMT)] ERROR Unable to load /home/jakob/projects/personal/hubot/hubot/scripts/shim: TypeError: Cannot read property 'hubot' of undefined
at Object.<anonymous> (/home/jakob/projects/personal/hubot/hubot/scripts/shim.js:3:31)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (/home/jakob/projects/personal/hubot/hubot/node_modules/coffee-script/lib/coffee-script/coffee-script.js:211:36)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Robot.loadFile (/home/jakob/projects/personal/hubot/hubot/src/robot.coffee:353:9, <js>:221:20)
at Robot.load (/home/jakob/projects/personal/hubot/hubot/src/robot.coffee:375:9, <js>:244:30)
at Shell.loadScripts (/home/jakob/projects/personal/hubot/hubot/bin/hubot:95:5, <js>:98:13)
at Shell.g (events.js:260:16)
at emitNone (events.js:67:13)
at Shell.emit (events.js:166:7)
at /home/jakob/projects/personal/hubot/hubot/src/adapters/shell.coffee:35:7, <js>:72:22
at Interface.<anonymous> (/home/jakob/projects/personal/hubot/hubot/src/adapters/shell.coffee:96:11, <js>:157:20)
at emitNone (events.js:72:20)
at Interface.emit (events.js:166:7)
at Interface.close (readline.js:285:8)
at ReadStream.onend (readline.js:94:10)
at emitNone (events.js:72:20)
at ReadStream.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:893:12)
at doNTCallback2 (node.js:429:9)
at process._tickCallback (node.js:343:17)
bashor
11/20/2015, 6:24 PMbashor
11/20/2015, 6:24 PMjkbbwr
11/20/2015, 6:27 PMKotlin = require("./kt/lib/kotlin.js")
require("./kt/hubot.js");
module.exports = Kotlin.module.hubot.Bot.run
object Bot {
@native
fun run(robot: dynamic) {
robot.hear("kt", { msg->
msg.send("hi from kt")
})
}
}
jkbbwr
11/20/2015, 6:27 PMbashor
11/20/2015, 6:29 PMjkbbwr
11/20/2015, 6:29 PMbashor
11/20/2015, 6:29 PMBot.run
annotated by @native