Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no response #39

Open
funal125 opened this issue Jan 14, 2014 · 5 comments
Open

no response #39

funal125 opened this issue Jan 14, 2014 · 5 comments

Comments

@funal125
Copy link

Hi, I have set-up robut work with hipchat. It looks fun. But i found it did not response my message. If I use a guess or another account to join the chat room. it works.
Is it possible to ask robut response to my message.

@justinweiss
Copy link
Owner

I’d love to look into this. I need some more information, though. Could you send me a screenshot or chat log of what you’re trying to do?

Thanks!
Justin

On Jan 13, 2014, at 6:13 PM, Felix Chang notifications@github.com wrote:

Hi, I have set-up robut work with hipchat. It looks fun. But i found it did not response my message. If I use a guess or another account to join the chat room. it works.
Is it possible to ask robut response to my message.


Reply to this email directly or view it on GitHub.

@zenbound
Copy link

zenbound commented May 9, 2014

Hello,

I am sorry to revive such an old thread, but I have a similar problem:

zen@will:/robut$ ls -lah
total 64K
drwxrwxr-x 7 zen zen 4.0K May 9 02:57 .
drwxr-xr-x 16 zen zen 4.0K May 9 03:24 ..
drwxrwxr-x 2 zen zen 4.0K May 9 01:58 bin
-rw-rw-r-- 1 zen zen 1.1K May 9 01:55 Chatfile
drwxrwxr-x 2 zen zen 4.0K May 9 03:24 examples
-rw-rw-r-- 1 zen zen 292 May 8 23:48 Gemfile
-rw-rw-r-- 1 zen zen 1.1K May 8 23:48 Gemfile.lock
drwxrwxr-x 8 zen zen 4.0K May 8 23:48 .git
-rw-rw-r-- 1 zen zen 53 May 8 23:48 .gitignore
drwxrwxr-x 3 zen zen 4.0K May 8 23:48 lib
-rw-rw-r-- 1 zen zen 557 May 8 23:48 Rakefile
-rw-rw-r-- 1 zen zen 6.4K May 8 23:48 README.rdoc
-rw-rw-r-- 1 zen zen 854 May 9 02:57 robut.gemspec
drwxrwxr-x 5 zen zen 4.0K May 8 23:48 test
-rw-rw-r-- 1 zen zen 346 May 8 23:48 .travis.yml
zen@will:
/robut$ cat examples/Chatfile

Require your plugins here

require 'robut/plugin/twss'
require 'robut/storage/yaml_store'
require 'robut/plugin/calc'

Add the plugin classes to the Robut plugin list.

Plugins are handled in the order that they appear in this array.

Robut::Plugin.plugins << Robut::Plugin::TWSS
Robut::Plugin.plugins << Robut::Plugin::Calc

Configure the robut jabber connection and you're good to go!

Robut::Connection.configure do |config|

Note that the jid must end with /bot if you don't want robut to

spam the channel, as described by the last bullet point on this

page: https://www.hipchat.com/help/category/xmpp

config.jid = 'xxxx@xxxxxx/'
config.password = '#######'
config.nick = 'XX XX'
config.room = '1_bottest@xxxxxxx'

Custom @mention name

config.mention_name = 'bot'

Ignore personal messages

config.enable_private_messaging = false

Some plugins require storage

Robut::Storage::YamlStore.file = ".robut"
config.store = Robut::Storage::YamlStore

Add a logger if you want to debug the connection

config.logger = Logger.new(STDOUT)
end

Starts successfully:
[Log Except]
(Jabber::Presence)
D, [2014-05-09T03:39:15.400454 #16848] DEBUG -- : TRYING stanzacbs...
D, [2014-05-09T03:39:15.400551 #16848] DEBUG -- : TRYING message/iq/presence/cbs...

But it doesn't respond to any of the plugins:
@robut calc 1 + 1
Zenbound
8:05 PM
@robut calc 1 + 1
Zenbound
8:08 PM
@robut calc 1+1
Zenbound
8:09 PM
@robut calc 1+1

I've had other users login and try to trigger as well, and while I see robut sees the messages in the debug logs, it doesn't trigger. It does this:

D, [2014-05-09T03:39:15.400454 #16848] DEBUG -- : TRYING stanzacbs...
D, [2014-05-09T03:39:15.400551 #16848] DEBUG -- : TRYING message/iq/presence/cbs...
D, [2014-05-09T03:40:15.177785 #16848] DEBUG -- : SENDING:

Can you offer any insight? I might be doing it wrong, so feel free to ask me for more info if it would help..

@justinweiss
Copy link
Owner

Hey, sorry you're running into problems.

One thing that might help -- what's your robot's hipchat name? If you try to @-mention them, what does it get autocompleted to?

@zenbound
Copy link

zenbound commented May 9, 2014

I have tried a custom name (@bot) and leaving it to defaults and calling it
@robut but no response. does it matter if the user is logged in from more
than 1 location? IE does robut ignore messages sent from the same user is
logged in from? I tried logging all instances out but one and had another
user login and test, but they couldn't trigger it either. Thanks for the
fast reply.
On May 9, 2014 4:01 PM, "Justin Weiss" notifications@github.com wrote:

Hey, sorry you're running into problems.

One thing that might help -- what's your robot's hipchat name? If you try
to @-mention them, what does it get autocompleted to?


Reply to this email directly or view it on GitHubhttps://github.com//issues/39#issuecomment-42722400
.

@justinweiss
Copy link
Owner

It shouldn’t, but that’s something I honestly haven’t tried out.

Some other things to try:

Could you try enabling the Robut::Plugin::Lunch plugin and saying lunch? in a room Robut’s in? That’s the only command I can think of off the top of my head that doesn’t require you to talk directly to robut.

Also, have you turned on logging? That will at least show you what robut sees, which has helped me see problems, especially when developing new plugins. I can also take a look at the end of the log file, if you want.

On May 9, 2014, at 4:05 PM, zenbound notifications@github.com wrote:

I have tried a custom name (@bot) and leaving it to defaults and calling it
@robut but no response. does it matter if the user is logged in from more
than 1 location? IE does robut ignore messages sent from the same user is
logged in from? I tried logging all instances out but one and had another
user login and test, but they couldn't trigger it either. Thanks for the
fast reply.
On May 9, 2014 4:01 PM, "Justin Weiss" notifications@github.com wrote:

Hey, sorry you're running into problems.

One thing that might help -- what's your robot's hipchat name? If you try
to @-mention them, what does it get autocompleted to?


Reply to this email directly or view it on GitHubhttps://github.com//issues/39#issuecomment-42722400
.


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants