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

Unable to find newly created user accounts #5

Closed
ferventcoder opened this issue Jan 30, 2015 · 5 comments
Closed

Unable to find newly created user accounts #5

ferventcoder opened this issue Jan 30, 2015 · 5 comments

Comments

@ferventcoder
Copy link

If someone that has never signed into gitter before (aka brand new user), joins gitter and then our chat room, they are not able to interact with hubot (until we restart the hubot).

The logs indicate that the user is not found:
https://gist.github.com/ferventcoder/9dc7ea6aae9cb8db922b

However once we restart hubot, all is well again. So we have a workaround.

@huafu
Copy link
Owner

huafu commented Jan 30, 2015

If I remember well, you need the new user to send one message in a room the bot is so that it'd be recognized.

@ferventcoder
Copy link
Author

Do you mean send a message the bot isn't in? We had the same user try multiple times in a room the bot was in and it didn't work. We also have scripts that evaluate on any message, not just addressed to the bot directly

@ferventcoder
Copy link
Author

Send a message in a room that the bot isn't in I meant...

@huafu
Copy link
Owner

huafu commented Jan 30, 2015

No I meant send a message in a room the bot is. But apparently that did not work. That is a long time I did that adapter I don't remember exactly how I handled new users, I believe there should be a hook called and then the user automatically added but maybe I am doing this only on start. Oh yeah just remember now, yeah it is on start it scans all rooms and their users. Not sure there is a way to do else but I'll double check this when I'll have time so I let this one open

@koron
Copy link
Contributor

koron commented Jun 18, 2016

I make a patch to fix/workaround this.
develop...koron:find-newly-created-user
I haven't completed testing this patch yet, but if you are interested in, check it out. 😉

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