Giter Club home page Giter Club logo

hubot-yammer's People

Contributors

athieriot avatar bitdeli-chef avatar emedvedev avatar moqada avatar rantav avatar ronhuang avatar technicalpickles avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hubot-yammer's Issues

Yammer Integration With Hubot

Hi,
I am new to the hubot and want to integrate my hubot with yammer, Can u please tell me the procedure step by step. I know their are adoptors available for that purpose, but i dont know how to use adaptors to talk to hubot from yammer.

Thanks,
Krishna P

oauth2

oauth1 is deprecated in yammer now. any updates for oauth2? looks like users will have trouble obtaining a secret token

Support more than 50 groups

Following this thread: #17

It seems that the group API has a limit of 50 groups which is problematic for the group_id resolver for big companies.

Have to look at use pagination capabilities.

Loop of bot replies

Hey , love the yammer bot , its great. Got mine up and working with our enterprise yammer and it replies but seems to loop and reply the same message ,hits about 15 replies and then limit reached , any thoughts ?

Message creation status :201

Thanks for the effort.

Privave groups support

Right now if hubot is a member of a private yammer group and messages are sent to this group, hubot doesn't get those messages (and hence never replies).
Right now I''d love to have a private group so I can test hubot on yammer, but long term, I think this is a useful feature regardless. I assume large organizations utilize private groups and would appreciate hubot being in the group.

Hubot will not respond to through yammer adapter ...

I exported all the env properties required (noted in the WIKI) and then started hubot with the following command:

bin/hubot -a yammer -n "Hubot yammer name"

No error ... subscription goes in successfully.

Using another yammer account I send "updates" (e.g. "hubot ping", "hubot help" etc) to the group listed in HUBOT_YAMMER_GROUPS, but get NO reply back. Don't know where to look next.

Error at startup

Hi,

I am not able to start hubot using Yammer adapter.

I have the following stack trace:

/home/hubot/bob_the_hubot/node_modules/hubot-yammer/src/yammer.coffee:149
        return callback(err, data.data);
                                 ^
TypeError: Cannot read property 'data' of undefined
  at /home/hubot/bob_the_hubot/node_modules/hubot-yammer/src/yammer.coffee:84:6, <js>:149:34
  at /home/hubot/bob_the_hubot/node_modules/hubot-yammer/src/node-yammer.js:11:19
  at Request._callback (/home/hubot/bob_the_hubot/node_modules/hubot-yammer/src/node-yammer.js:124:14)
  at Request.self.callback (/home/hubot/bob_the_hubot/node_modules/hubot-yammer/node_modules/request/main.js:108:22)
  at Request.<anonymous> (/home/hubot/bob_the_hubot/node_modules/hubot-yammer/node_modules/request/main.js:468:18)
  at Request.EventEmitter.emit (events.js:95:17)
  at IncomingMessage.<anonymous> (/home/hubot/bob_the_hubot/node_modules/hubot-yammer/node_modules/request/main.js:429:16)
  at IncomingMessage.EventEmitter.emit (events.js:117:20)
  at _stream_readable.js:920:16
  at process._tickCallback (node.js:415:13)

I wonder if I correctly set the environment variables. In particular, I am not sure which value I have to set to HUBOT_YAMMER_TOKEN and HUBOT_YAMMER_TOKEN_SECRET.

Using Yammer OAuth flow, I got an authorization code (callback url) and a token from the last returned JSON hash.

Thank you for your support.

session error,INFO keepalive pong: 404 and INFO Skipping keep alive, time to rest

Run for some time, yammer automatically offline,
What reason is this?
Where did your plug-in set the session time?
This is log:
[Thu Dec 14 2017 09:06:32 GMT+0000 (UTC)] INFO hubot-redis-brain: Using default redis on localhost:6379
[Thu Dec 14 2017 09:06:32 GMT+0000 (UTC)] DEBUG Parsing help for /home/ec2-user/hubot/yammer-bb8/node_modules/hubot-redis-brain/src/redis-brain.coffee
[Thu Dec 14 2017 09:06:32 GMT+0000 (UTC)] DEBUG Parsing help for /home/ec2-user/hubot/yammer-bb8/node_modules/hubot-rules/src/rules.coffee
[Thu Dec 14 2017 09:06:32 GMT+0000 (UTC)] DEBUG Parsing help for /home/ec2-user/hubot/yammer-bb8/node_modules/hubot-shipit/src/shipit.coffee
groups list : hubotTest
groups_ids list : 13282582

[Thu Dec 14 2017 09:11:32 GMT+0000 (UTC)] INFO keepalive ping
[Thu Dec 14 2017 09:11:32 GMT+0000 (UTC)] INFO keepalive pong: 404

<title>The page you were looking for doesn't exist (404)</title>

You won’t find anything here, but keep believing.

The exact page you're looking for isn't here, but the information you're looking for is somewhere out there.

Go to Yammer.

received bb8 help from yinglv2 (thread_id: 999998255, sender_id: 1562646705) [Thu Dec 14 2017 09:18:21 GMT+0000 (UTC)] DEBUG Message 'bb8 help' matched regex //^\s*[@]?bb8[:,]?\s*(?:help(?:\s+(.*))?$)/i/; listener.options = { id: null } [Thu Dec 14 2017 09:18:21 GMT+0000 (UTC)] DEBUG Executing listener callback for Message 'bb8 help' reply message to yinglv2 with text bb8 adapter - Reply with the adapter bb8 animate me - The same thing as `image me`, except adds a few parameters to try to return an animated GIF instead. bb8 echo - Reply back with bb8 help - Displays all of the help commands that this bot knows about. bb8 help - Displays all help commands that match . bb8 image me - The Original. Queries Google Images for and returns a random top result. bb8 map me - Returns a map view of the area returned by `query`. bb8 mustache me - Adds a mustache to the specified URL or query result. bb8 ping - Reply with pong bb8 pug bomb N - get N pugs bb8 pug me - Receive a pug bb8 the rules - Make sure hubot still knows the rules. bb8 time - Reply with current time bb8 translate me - Searches for a translation for the and then prints that bad boy out. bb8 translate me from into - Translates from into . Both and are optional ship it - Display a motivation squirrel params: [object Object] Message creation status 201 received bb8 adapter - Reply with the adapter bb8 animate me - The same thing as `image me`, except adds a few parameters to try to return an animated GIF instead. bb8 echo - Reply back with bb8 help - Displays all of the help commands that this bot knows about. bb8 help - Displays all help commands that match . bb8 image me - The Original. Queries Google Images for and returns a random top result. bb8 map me - Returns a map view of the area returned by `query`. bb8 mustache me - Adds a mustache to the specified URL or query result. bb8 ping - Reply with pong bb8 pug bomb N - get N pugs bb8 pug me - Receive a pug bb8 the rules - Make sure hubot still knows the rules. bb8 time - Reply with current time bb8 translate me - Searches for a translation for the and then prints that bad boy out. bb8 translate me from into - Translates from into . Both and are optional ship it - Display a motivation squirrel from yinglv2,bb007 (thread_id: 999998255, sender_id: 1651254473) bb8 does not reply himself, bb8 not crazy nor desperate received bb8 adapter - Reply with the adapter bb8 animate me - The same thing as `image me`, except adds a few parameters to try to return an animated GIF instead. bb8 echo - Reply back with bb8 help - Displays all of the help commands that this bot knows about. bb8 help - Displays all help commands that match . bb8 image me - The Original. Queries Google Images for and returns a random top result. bb8 map me - Returns a map view of the area returned by `query`. bb8 mustache me - Adds a mustache to the specified URL or query result. bb8 ping - Reply with pong bb8 pug bomb N - get N pugs bb8 pug me - Receive a pug bb8 the rules - Make sure hubot still knows the rules. bb8 time - Reply with current time bb8 translate me - Searches for a translation for the and then prints that bad boy out. bb8 translate me from into - Translates from into . Both and are optional ship it - Display a motivation squirrel from yinglv2,bb007 (thread_id: 999998255, sender_id: 1651254473) bb8 does not reply himself, bb8 not crazy nor desperate [Thu Dec 14 2017 09:21:32 GMT+0000 (UTC)] INFO keepalive ping [Thu Dec 14 2017 09:21:32 GMT+0000 (UTC)] INFO keepalive pong: 404 <title>The page you were looking for doesn't exist (404)</title>

You won’t find anything here, but keep believing.

The exact page you're looking for isn't here, but the information you're looking for is somewhere out there.

Go to Yammer.

[Thu Dec 14 2017 09:26:32 GMT+0000 (UTC)] INFO keepalive ping
[Thu Dec 14 2017 09:26:32 GMT+0000 (UTC)] INFO keepalive pong: 404

<title>The page you were looking for doesn't exist (404)</title>

You won’t find anything here, but keep believing.

The exact page you're looking for isn't here, but the information you're looking for is somewhere out there.

Go to Yammer.

...............................
[Thu Dec 14 2017 10:01:32 GMT+0000 (UTC)] ERROR Error: Redis connection in broken state: connection timeout exceeded.
at RedisClient.connection_gone (/hubot/node_modules/redis/index.js:644:19)
at RedisClient.on_error (/hubot/node_modules/redis/index.js:405:10)
at Socket. (/hubot/node_modules/redis/index.js:279:14)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at emitErrorNT (net.js:1281:8)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickDomainCallback (internal/process/next_tick.js:128:9)
..........................................................
[Fri Dec 15 2017 01:46:32 GMT+0000 (UTC)] INFO keepalive ping
[Fri Dec 15 2017 01:46:32 GMT+0000 (UTC)] INFO Skipping keep alive, time to rest
[Fri Dec 15 2017 01:51:32 GMT+0000 (UTC)] INFO keepalive ping
[Fri Dec 15 2017 01:51:32 GMT+0000 (UTC)] INFO Skipping keep alive, time to rest
[Fri Dec 15 2017 01:56:32 GMT+0000 (UTC)] INFO keepalive ping
[Fri Dec 15 2017 01:56:32 GMT+0000 (UTC)] INFO Skipping keep alive, time to rest

Above is the log.
If you know the reason, please tell me.
thank you very much!!!

hubot does't start with yammer adapter

bin/hubot -a yammer

results in the following exception ...

[Thu Oct 11 2012 17:20:21 GMT-0600 (MDT)] ERROR Cannot load adapter yammer - TypeError: Object # has no method 'robot'
TypeError: Object # has no method 'robot'
at Object. (/opt/hubot/node_modules/hubot-yammer/src/yammer.coffee:7:28)
at Object. (/opt/hubot/node_modules/hubot-yammer/src/yammer.coffee:210:4)
at Module._compile (module.js:446:26)
at Object..coffee (/opt/hubot/node_modules/hubot/node_modules/coffee-script/lib/coffee-script/coffee-script.js:22:21)
at Module.load (module.js:353:31)
at Function._load (module.js:311:12)
at Module.require (module.js:359:17)
at require (module.js:375:17)
at Robot.loadAdapter (/opt/hubot/node_modules/hubot/src/robot.coffee:215:31)
at new Robot (/opt/hubot/node_modules/hubot/src/robot.coffee:47:14)
TypeError: Cannot call method 'on' of null
at Object. (/opt/hubot/node_modules/hubot/bin/hubot:105:19)
at Object. (/opt/hubot/node_modules/hubot/bin/hubot:109:4)
at Module._compile (module.js:446:26)
at Object.run (/opt/hubot/node_modules/hubot/node_modules/coffee-script/lib/coffee-script/coffee-script.js:79:25)
at /opt/hubot/node_modules/hubot/node_modules/coffee-script/lib/coffee-script/command.js:175:29
at /opt/hubot/node_modules/hubot/node_modules/coffee-script/lib/coffee-script/command.js:150:18
at [object Object]. (fs.js:123:5)
at [object Object].emit (events.js:64:17)
at Object.oncomplete (fs.js:1188:12)

Add Hubot to the group

export HUBOT_YAMMER_GROUPS="groups list"

How do I add new group(s) for hubot to recognize and be in the group? I do not want to stop hubot, add new group to HUBOT_YAMMER_GROUPS, and restart hubot.

Thanks!

hubot replies should be to the original message

In yammer conversations can be threaded.
So I think it'd be useful that when hubot replies, it replies to the sender in the same thread.

For example, instead of:

Ran: bot ping
Bot: PONG

It would be like

Ran: bot ping
   Bot: PONG (in reply to Ran)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.