Comments (9)
Would be helpful if you include a message or two where you have tried talking to the bot.
With what you've included, looks like it is fully functional.
I am assuming you are calling it with:
@GroceryOps: help
from hubot-rocketchat.
I am trying the command from rocket-chat screen:
Once i entered the Message
I can see the logs like below for every message, but the expected behaviour is not happening..
Actually it should fire the http call for the comand "GroceryOps traffic report "
Even i have inspected the message: by putting console.log , in rocketchat_driver.coffee.
I am able see the message in changedMsg = changedMsgQuery.result[0].
Here is the Operations.coffee file:
module.exports = (robot) ->
robot.hear /traffic report/i, (res) ->
robot.http("http://localhost:9050")
.get() (err, res1, body) ->
res.send "Hey! #{body}"
robot.respond /open the pod bay doors/i, (res) ->
res.reply "I'm afraid I can't let you do that."
robot.hear /I like pie/i, (res) ->
res.emote "makes a freshly baked pie"
robot.on "commit", () ->
robot.messageRoom 'room', 'room'
robot.http("http://localhost:9050")
.get() (err, res1, body) ->
res.send "Got back #{body}"
I dont know what i am missing.
from hubot-rocketchat.
Here is the screenshot for : Message received successfully , but no reaction
from hubot-rocketchat.
Hey Sing li, Sorry man... Now it is working well..
I did one thing bad. Its my mistake..
I have used the same user for Bot as well as Rocket Chat App also....
That's why it is not reponsed back...
Now i have used seperate user for Hubot and Seprate user for Rocket Chat App.. Now it is responding back ....
Anyway , thanks for the quick reply....
Finally it is resolved. Thanks
from hubot-rocketchat.
@enterpriseentity good to hear you got that. I was just about to ask you that question 👍
Because it only spits out the incoming text if its not being sent from its user account. The fact that you saw the ID's meant for sure it was seeing them, it just was ignoring them intentionally.
from hubot-rocketchat.
Hey @enterpriseentity, could you please provide more details what fiexd the issue?
I'm having the exact same syptomes, only getting "Change received on ID " in the logs and the bot does not respond. Which usernames need to be different? In my case I run the unmodified docker and connect to Rocket Chat with testbot, but also set the bots name to testbot (so that the log reports: "Once connected to rooms I will respond to the name: testbot"). Have tried it with a different names there, but this didn't help.
So I assume you are talking about usernames on a different level.
Thanks.
from hubot-rocketchat.
I second ^
from hubot-rocketchat.
I third ^
My rocketchat username is 'bot.bot', but my hubots name is botbot.
[Wed Jun 13 2018 01:13:17 GMT+0000 (UTC)] INFO [startup] Rocket.Chat adapter in use
[Wed Jun 13 2018 01:13:17 GMT+0000 (UTC)] INFO [startup] Respond to the name: botbot
[Wed Jun 13 2018 01:13:17 GMT+0000 (UTC)] INFO I will also respond to my Rocket.Chat username as an alias bot.bot
[Wed Jun 13 2018 01:13:17 GMT+0000 (UTC)] INFO [startup] Rooms specified: general
[Wed Jun 13 2018 01:13:17 GMT+0000 (UTC)] INFO [connect] Connecting { host: 'localhost:3000', useSsl: false, timeout: 20000 }
[Wed Jun 13 2018 01:13:17 GMT+0000 (UTC)] INFO [connect] Connected
[Wed Jun 13 2018 01:13:17 GMT+0000 (UTC)] INFO [login] Logging in bot.bot
[Wed Jun 13 2018 01:13:17 GMT+0000 (UTC)] INFO [joinRoom] Calling (async): ["iRGDWeh4htFWz8euw"]
[Wed Jun 13 2018 01:13:17 GMT+0000 (UTC)] INFO [subscribe] Preparing subscription: stream-room-messages: __my_messages__
[Wed Jun 13 2018 01:13:17 GMT+0000 (UTC)] INFO [subscribe] Stream ready: 4
[Wed Jun 13 2018 01:13:17 GMT+0000 (UTC)] INFO [reactive] Listening for change events in collection stream-room-messages
[Wed Jun 13 2018 01:13:20 GMT+0000 (UTC)] INFO [received] Message in room njnvestb7BmzBDm9hsBgEWfiNtJ2gdfWQG
[Wed Jun 13 2018 01:13:32 GMT+0000 (UTC)] INFO [received] Message in room njnvestb7BmzBDm9hsBgEWfiNtJ2gdfWQG
[Wed Jun 13 2018 01:15:40 GMT+0000 (UTC)] INFO [received] Message in room iRGDWeh4htFWz8euw
[Wed Jun 13 2018 01:15:40 GMT+0000 (UTC)] INFO Message receive callback ID YLSWdDKdTMxKCv6N6 at Wed Jun 13 2018 01:15:40 GMT+0000 (UTC)
[Wed Jun 13 2018 01:15:40 GMT+0000 (UTC)] INFO [Incoming] Jon: botbot ping
[Wed Jun 13 2018 01:15:40 GMT+0000 (UTC)] INFO Filters passed, will receive message
[Wed Jun 13 2018 01:15:43 GMT+0000 (UTC)] INFO [received] Message in room iRGDWeh4htFWz8euw
[Wed Jun 13 2018 01:15:43 GMT+0000 (UTC)] INFO Message receive callback ID qsRXbfaJPL3w5BHpq at Wed Jun 13 2018 01:15:43 GMT+0000 (UTC)
[Wed Jun 13 2018 01:15:43 GMT+0000 (UTC)] INFO [Incoming] Jon: bot.bot ping
[Wed Jun 13 2018 01:15:43 GMT+0000 (UTC)] INFO Filters passed, will receive message```
It doesn't reply when saying botbot ping or bot.bot ping.
from hubot-rocketchat.
@jondkelley - please open a new issue, this one was closed over 2 years ago.
from hubot-rocketchat.
Related Issues (20)
- Detect new user login at first time
- Use robot.adapter.CallMethod with custom method HOT 1
- Ability to define passwords using docker secrets
- Hubot sends output to the wrong channel HOT 3
- AttachmentMessage toString method bug
- Please make a new release tag for latest code
- Getting Error message message: 'User not found [403]', errorType: 'Meteor.Error' } HOT 1
- Unable to get DirectMessage
- The hubot does't connect with EC2 server using HTTP
- Occasional Lost Connection to Room
- Public room visible for user first login without permisison HOT 1
- chatbot not be able to answer to livechat
- ERROR TypeError: Cannot read property '_id' of undefined HOT 7
- Hubot can't login User not found [403] HOT 1
- Problem with push notifications showing encrypted message content.
- Make Tutorials
- ERROR ROCKETCHAT
- Query param support in im.list and groups.list
- Hubot 11 and hubot-rocketchat adapter HOT 1
- Rocketchat hubot shows connected successfully but not showing green light in rocket.chat application
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hubot-rocketchat.