在Heroku上运行一个IRC bot
我已经启动了我的机器人,并且希望它在Heroku上运行,以保持它与我们的IRC通道持续连接。 这是我的procfile的内容:
web: coffee marvin.coffee
(这个bot的名字是marvin)。
这是marvin.coffee
irc = require 'irc' config = require('./config').config client = new irc.Client(config.server, config.nick, config.options) # IRC-listeners
我从来没有创build任何HTTP服务器,我希望有可能简单地运行在Heroku这个咖啡脚本为了我的机器人运行,但我得到以下错误:
Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
机器人启动并join频道,但由于Heroku杀死进程而立即离开。
任何帮助将不胜感激 :-)
它是否工作,如果你改变web: coffee marvin.coffee
bot: coffee marvin.coffee
在你的Procfile
?