Hi!
Thanks for this great software!
I’m setting up a workflow of Rocket.Chat and docker and it’s working so far.
But I would like to automate the workflow together with hubot. From what I see it needs a bot account created previously, so it would need manual steps before I can run the container with the bot.
I gave a look at the api, and would call it with:
curl -H "X-Auth-Token: $hubot_auth_token" \
-H "X-User-Id: $hubot_user_id" \
-H "Content-type:application/json" \
$base_url/api/v1/users.create \
-d "{\
'email': '$hubot_email', \
'username': '$hubot_user',\
'password': '$hubot_password', \
'name': '$hubot_name', \
'roles': ['bot'], \
'verified': true, \
'joinDefaultChannels': false, \
'requirePasswordChange': false, \
'sendWelcomeEmail': false \
}"
but unfortunately the auth_token
and user_id
should be created manually previously.
I tried to find a way to specify environment variables to do that in the setup, or to run a command directly in the rocketchat container to create the bot user without the need of using credentials of another user, but no success so far.
Is there a way to automate this process?
Thanks in advance.