-
Notifications
You must be signed in to change notification settings - Fork 11.4k
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
How to avoid "Invalid user error" #192
Comments
My code snippet is Meteor.call "sendMessage",
u:
username: name
to: target
msg: content
rid: 'EtomNKRwxp6mELsGGLHa4ybHScj2WZoo3K' I have already wrap this function by |
maybe @Sing-Li can answer this? |
@haosdent did you create a user for Hubot? You need to register yourself as Hubot, and set the login credentials on the hubot server via environment variables. |
We need to add a default Hubot user and generate a random token, visible to the admin |
Thank you for your reply. @Sing-Li @engelgabriel . And it could works although it only have the basic communicate function. |
I add a receiveMessage to Meteor.methods in server directory. But I am not sure whether it is the best way or not. |
That looks cool! Lets me try it and I'll give you some feedback. About the receiveMessage, I had a similar idea... let's talk about it after I have had read the code. |
Thank you for your great help. |
@haosdent do you want make a pull request with yous script? I'd be glad to accept it. We just need to turn all the configuration loaded form the DB... so we can setup using an admin interface. |
Sure and very gladful you want to accept it. Let me fix some minor issue of my scripts and create a merge request. |
Cool! Now we can 'bridge in' mainstream OSS project IRC channels 👍 |
I've split the This should eliminate the need of your Can you please review it? And send a PR migrating to the new method? |
Thank you very much! I see it, let me migrate. |
Travis (and the tests all in one sequence) usually fail somewhere - still, one-by-one, they run successfully now.
Hello, I try to write a third part plugin like packages/rocketchat-hubot. But I meet this error when I call
Meteor.call "sendMessage"
.I check the code of rocketchat-hubot, but seem it also don't set userid. I am confuse here, how could I avoid this error. Thank you in advance.
The text was updated successfully, but these errors were encountered: