hubot

Get Hubot to talk at a certain time?

大憨熊 提交于 2019-12-03 08:56:39
问题 I'm thinking about making a Hubot clock-based notifier (think "It's 5, time to go home!" but less annoying and for a different reason). What's the best way to go about doing something like this in a Hubot script? [ edit ] Here's an example using node-cron: TIMEZONE = "America/New_York" QUITTING_TIME = '0 0 17 * * 2-6' # M-F 5pm ROOM = "Dev" cronJob = require('cron').CronJob module.exports = (robot) -> gohome = new cronJob QUITTING_TIME, -> robot.messageRoom ROOM, "It's 5! Go home!" null true

Debugging/printing in a Hubot script

谁说我不能喝 提交于 2019-12-03 05:44:43
I'm trying to debug an existing Hubot script and in the future write my own, and I need an easy way to debug it or at least print values somewhere (but not to the channel). How can I do so? Bonus points if this can be done with just using Node in some interactive local mode. I'm really not sure where to start. All scripts Hubot uses are written in Coffeescript. P.S. I'm using Hubot with Hipchat. I don't know if this helps but I found a way to inspect objects. Util = require "util" module.exports = (robot) -> robot.hear /hi robot/i, (msg) -> user = robot.brain.usersForFuzzyName(msg.message.user

Unable to install hubot - npm dependency not met

匿名 (未验证) 提交于 2019-12-03 02:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: While trying to deploy hubot, npm keeps complaining about unmet dependencies. The documentation does not explain how to get around this. yum install npm -- enablerepo = epel yum install nodejs -- enablerepo = epel cd / opt git clone https : //github.com/github/hubot.git cd hubot / ./ bin / hubot -- create acebot npm install - g hubot coffee - script ... npm http 200 https : //registry.npmjs.org/formidable/-/formidable-1.0.14.tgz npm http 200 https : //registry.npmjs.org/uid2/-/uid2-0.0.2.tgz / usr / bin / hubot -> /usr/ lib / node

Unable to install hubot - npm dependency not met

心已入冬 提交于 2019-12-03 01:37:27
While trying to deploy hubot, npm keeps complaining about unmet dependencies. The documentation does not explain how to get around this. yum install npm --enablerepo=epel yum install nodejs --enablerepo=epel cd /opt git clone https://github.com/github/hubot.git cd hubot/ ./bin/hubot --create acebot npm install -g hubot coffee-script ... npm http 200 https://registry.npmjs.org/formidable/-/formidable-1.0.14.tgz npm http 200 https://registry.npmjs.org/uid2/-/uid2-0.0.2.tgz /usr/bin/hubot -> /usr/lib/node_modules/hubot/bin/hubot npm WARN unmet dependency /usr/lib/node_modules/block-stream

Get Hubot to talk at a certain time?

我怕爱的太早我们不能终老 提交于 2019-12-02 23:06:10
I'm thinking about making a Hubot clock-based notifier (think "It's 5, time to go home!" but less annoying and for a different reason). What's the best way to go about doing something like this in a Hubot script? [ edit ] Here's an example using node-cron: TIMEZONE = "America/New_York" QUITTING_TIME = '0 0 17 * * 2-6' # M-F 5pm ROOM = "Dev" cronJob = require('cron').CronJob module.exports = (robot) -> gohome = new cronJob QUITTING_TIME, -> robot.messageRoom ROOM, "It's 5! Go home!" null true TIMEZONE dependencies: "cron": "0.3.3", "time": "0.8.2" I would use node-cron. It's pretty flexible and

Can Hubot Slack bot store sessions

萝らか妹 提交于 2019-12-01 12:17:08
I am trying to implement simple slack bot. So I have configured hubot which will take inputs from slack and passing it to my webapp ( django app ) and it will take whatever the response from django-app and will reply to slack. In this process I am trying to store session in django using request.session but that is not reflected in slack . If I am accessing the django-url in browser it is able to store sessions and getting proper response with session. So does the problem lie with slack or my approach and is there a way to store sessions in hubot when requesting to django-app ?? I can not speak

Rocket Chat Hubot Adapter is not replying back

帅比萌擦擦* 提交于 2019-11-29 14:34:14
Hi i am running hubot with rocket chat. I have created another user "mybot" having bot role and used it and got connected successfully. Below are my environment variables export ROCKETCHAT_ROOM='' export LISTEN_ON_ALL_PUBLIC=true export ROCKETCHAT_USER=mybot export ROCKETCHAT_PASSWORD=123456789 export ROCKETCHAT_AUTH=password Hubot is not responding back to me when i am sending any message. Messages send are visible in terminal logs but a return message is not shown from the hubot. Screenshot of terminal 来源: https://stackoverflow.com/questions/52659602/rocket-chat-hubot-adapter-is-not-replying

Rocket Chat Hubot Adapter is not replying back

a 夏天 提交于 2019-11-28 08:28:04
问题 Hi i am running hubot with rocket chat. I have created another user "mybot" having bot role and used it and got connected successfully. Below are my environment variables export ROCKETCHAT_ROOM='' export LISTEN_ON_ALL_PUBLIC=true export ROCKETCHAT_USER=mybot export ROCKETCHAT_PASSWORD=123456789 export ROCKETCHAT_AUTH=password Hubot is not responding back to me when i am sending any message. Messages send are visible in terminal logs but a return message is not shown from the hubot. Screenshot