我正在运行OS X Yosemite版本10.10.3的MacBook Pro上,我在TextMate版本2.0-beta.7.4中编写了我的代码,并且所有的heroku和hubot都是最新版本。
在课堂上,我们必须将Hubot安装到我们的计算机上,以便在终端中对代码进行本地测试。一旦该代码正常,我们将其推送到Heroku并用另一个机器人进行测试。然后,如果它与该机器人的罚款,老师推动git,我们开始使用Hubot来显示我们制作的代码。
我的问题是我所做的代码并没有被终端中的hubot看到。我该怎么做才能解决这个问题,以便继续下一步呢?我所做的就是编写代码,它永远不会出现在终端中的hubot上。
当我尝试推送Heroku之前我想到了这个错误。
2015-06-26T16:56:00.521845+00:00 app[web.1]: [Fri Jun 26 2015 12:56:00 GMT-0400 (EDT)] ERROR Unable to load /app/scripts/thisclass: /app/scripts/thisclass.js:1
这些文件的代码是JavaScript结尾,所以.js
这是thisclass.js
// Description:
// Explaining the class, program, and school.
//
// Dependencies:
// None
//
// Configuration:
// None
//
// Commands:
// hubot dwp class - Explaining the class, program, and school.
//
// Author:
// Emily Van Vlerah
//
// Contributor:
// None
module.exports = function(robot){
// User types in command
return robot.respond(/dwp class/i,function(msg){
//The class information
msg.send("This is the Deployment of Web Applications for the Web Design and Development program at Full Sail University.");
});
}
我的另一个文件同样会显示将要显示的信息。
答案 0 :(得分:0)
在您粘贴的代码中,您最后错过了;