简体   繁体   English

在Heroku上托管的Hubot网站首页?

[英]Website home for Hubot hosted on Heroku?

I currently have a Hubot hosted on a free Heroku account. 我目前有一个免费的Heroku帐户托管的Hubot。 I'd like to have a website that would work as an endpoint to reach the Hubot from outside the chatting application that the bot is on. 我想拥有一个网站,该网站可以作为从机器人所处聊天应用程序外部访问Hubot的端点。

Is there any way to do so? 有什么办法吗?

Thank you 谢谢

Hubot has a built-in HTTP listener for this : https://hubot.github.com/docs/scripting/#http-listener Hubot为此具有内置的HTTP侦听器: https ://hubot.github.com/docs/scripting/#http-listener

If you use Heroku, you can then send HTTP requests directly to your Heroku Domain your_app.herokuapp.com/hubot 如果您使用Heroku,则可以直接将HTTP请求发送到您的Heroku域your_app.herokuapp.com/hubot

httpd.coffee脚本的Hubot src/scripts文件夹中查看-它已经设置了一些HTTP示例端点,并且很容易遵循。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM