Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Lita won't respond to self. #35

Open
MrJoy opened this issue Jan 30, 2016 · 6 comments
Open

Lita won't respond to self. #35

MrJoy opened this issue Jan 30, 2016 · 6 comments

Comments

@MrJoy
Copy link

MrJoy commented Jan 30, 2016

When I have Lita connect to HipChat as me, it does not recognizes messages I send when I log in from web/native client.

It makes it hard to develop handlers if I have to have multiple accounts to be able to talk to the bot. Could a flag be added to allow it to listen to messages from its own user ID?

@jimmycuadra
Copy link
Collaborator

No, because this could cause infinite loops. I'm afraid using a dedicated account for the bot, even during testing, is the best approach. I test plugins on HipChat that way, too.

@MrJoy
Copy link
Author

MrJoy commented Feb 1, 2016

I understand the risk, but a second user is simply not possible in some contexts such as my current one: Access is gated by IT department and mechanisms don't exist for creating users not corresponding to a human.

@jimmycuadra
Copy link
Collaborator

How is Lita deployed in production if all HipChat accounts need to correspond to a real person? Or do you mean that you're not allowed to create a secondary test account for it?

@MrJoy
Copy link
Author

MrJoy commented Feb 1, 2016

It's not presently deployed to production. I'm building out a Lita setup as a proof-of-concept.

@MrJoy
Copy link
Author

MrJoy commented Feb 1, 2016

(I.E. I might be able to convince folks it's worth it to expand the process if, and only if, the organization sees value in the bot. Essentially, that can't happen until the bot exists.)

@jimmycuadra
Copy link
Collaborator

Ah, I see. I think this use case is unusual enough that I don't want to add any configuration to disable the no-messages-from-self behavior. Two workarounds for you I can think of: set up a test HipChat account where you have full admin access, and if that's not feasible because the plugins you're developing require access to company resources, use your own fork of Lita that has the check for messages-from-self removed.

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

No branches or pull requests

2 participants