Giter Site home page Giter Site logo

Comments (9)

Sing-Li avatar Sing-Li commented on August 25, 2024

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.

enterpriseentity avatar enterpriseentity commented on August 25, 2024

I am trying the command from rocket-chat screen:
rocketchat screen

Once i entered the Message

I can see the logs like below for every message, but the expected behaviour is not happening..

hubot screen

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.

enterpriseentity avatar enterpriseentity commented on August 25, 2024

Here is the screenshot for : Message received successfully , but no reaction

reactivequery

from hubot-rocketchat.

enterpriseentity avatar enterpriseentity commented on August 25, 2024

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.

geekgonecrazy avatar geekgonecrazy commented on August 25, 2024

@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.

m0se avatar m0se commented on August 25, 2024

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.

deenski avatar deenski commented on August 25, 2024

I second ^

from hubot-rocketchat.

jondkelley avatar jondkelley commented on August 25, 2024

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.

timkinnane avatar timkinnane commented on August 25, 2024

@jondkelley - please open a new issue, this one was closed over 2 years ago.

from hubot-rocketchat.

Related Issues (20)

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.