# Hubot and mattermost adapter

**URL:** <https://forum.mattermost.com/t/hubot-and-mattermost-adapter/4103>\
**Category:** Troubleshooting\
**Created:** [November 9, 2017, 7:43pm UTC](https://forum.mattermost.com/t/hubot-and-mattermost-adapter/4103 "2017-11-09T19:43:39Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![vlee](https://avatars.discourse-cdn.com/v4/letter/v/96bed5/32.png) [@vlee](https://forum.mattermost.com/u/vlee)\
**Post date:** [November 9, 2017, 7:43pm UTC](https://forum.mattermost.com/t/hubot-and-mattermost-adapter/4103/1 "2017-11-09T19:43:39Z")

</div>

Hello All,

I am trying to setup hubot with the mattermost adapter but am having some issues. I run the “yo hubot” command and it asks me for the adapter, I put mattermost but then ran into the warning "hubot-help@0.2.2 requires a peer of coffee-script@^1.12.6 but none was installed. I then ran npm install -g coffee-script and coffee-script 1.12.7 was installed.

I then go back to run hubot again and get the warning “UNMET PEER DEPENDENCY coffee-script@^1.12.6” and I see the adapter is still campfire not mattermost.

I am not sure how to proceed. Does anyone have any advice?

- Victoria

---

<div class="post-metadata">

**Author:** ![lindy65](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/lindy65/32/1811_2.png) [@lindy65](https://forum.mattermost.com/u/lindy65)\
**Post date:** [November 10, 2017, 8:09am UTC](https://forum.mattermost.com/t/hubot-and-mattermost-adapter/4103/2 "2017-11-10T08:09:44Z")

</div>

Hi @vlee,

I’m going to resolve this issue and link it to the first one you opened as it’s a duplicate 🙂

Please see: [[SOLVED] Help with hubot installation](https://forum.mattermost.com/t/help-with-hubot-installation/4048)

---

<div class="post-metadata">

**Author:** ![vlee](https://avatars.discourse-cdn.com/v4/letter/v/96bed5/32.png) [@vlee](https://forum.mattermost.com/u/vlee)\
**Post date:** [November 10, 2017, 1:26pm UTC](https://forum.mattermost.com/t/hubot-and-mattermost-adapter/4103/3 "2017-11-10T13:26:04Z")

</div>

Hi @lindy65,

Thank you for your response. But can you actually mark the other one as a duplicate? I got that issue resolved but not this one.

- Victoria

---

<div class="post-metadata">

**Author:** ![lindy65](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/lindy65/32/1811_2.png) [@lindy65](https://forum.mattermost.com/u/lindy65)\
**Post date:** [November 10, 2017, 5:13pm UTC](https://forum.mattermost.com/t/hubot-and-mattermost-adapter/4103/4 "2017-11-10T17:13:08Z")

</div>

Hey @vlee,

Sorry about that, I’ve opened this one again and solved the other 🙂

---

<div class="post-metadata">

**Author:** ![vlee](https://avatars.discourse-cdn.com/v4/letter/v/96bed5/32.png) [@vlee](https://forum.mattermost.com/u/vlee)\
**Post date:** [November 13, 2017, 8:10pm UTC](https://forum.mattermost.com/t/hubot-and-mattermost-adapter/4103/5 "2017-11-13T20:10:54Z")

</div>

Thanks again 🙂

---

<div class="post-metadata">

**Author:** ![vlee](https://avatars.discourse-cdn.com/v4/letter/v/96bed5/32.png) [@vlee](https://forum.mattermost.com/u/vlee)\
**Post date:** [November 14, 2017, 4:19pm UTC](https://forum.mattermost.com/t/hubot-and-mattermost-adapter/4103/6 "2017-11-14T16:19:12Z")

</div>

Hello,

Just adding some more information. I received some advice to  
"First run yo hubot and choose “shell” as adapter.  
This wil setup the basic bot.  
Then you need to install and configure a mattermost adapter, like this one:  
npm install hubot-mattermost-adapter --save

After install you can then run that hubot with the mattermost adapter:  
./bin/hubot --adapter mattermost-adapter"

After following the advice I get the message “EMERGENCY MATTERMOST\_HOST is required”

---

<div class="post-metadata">

**Author:** ![lindy65](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/lindy65/32/1811_2.png) [@lindy65](https://forum.mattermost.com/u/lindy65)\
**Post date:** [November 17, 2017, 7:59am UTC](https://forum.mattermost.com/t/hubot-and-mattermost-adapter/4103/7 "2017-11-17T07:59:55Z")

</div>

Hi @vlee,

Did you see [this comment](https://forum.mattermost.com/t/solved-help-with-hubot-installation/4048/4) on your other post? Not sure if it’s useful?

---

<div class="post-metadata">

**Author:** ![vlee](https://avatars.discourse-cdn.com/v4/letter/v/96bed5/32.png) [@vlee](https://forum.mattermost.com/u/vlee)\
**Post date:** [November 17, 2017, 2:21pm UTC](https://forum.mattermost.com/t/hubot-and-mattermost-adapter/4103/8 "2017-11-17T14:21:19Z")

</div>

Hi @lindy65 Thank you for checking up on this post. Unfortunately, the comment is not relevant to this issue.

---

<div class="post-metadata">

**Author:** ![lindy65](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/lindy65/32/1811_2.png) [@lindy65](https://forum.mattermost.com/u/lindy65)\
**Post date:** [November 17, 2017, 4:58pm UTC](https://forum.mattermost.com/t/hubot-and-mattermost-adapter/4103/9 "2017-11-17T16:58:08Z")

</div>

Thanks @vlee,

Just wanted to make sure 😉

---

<div class="post-metadata">

**Author:** ![vlee](https://avatars.discourse-cdn.com/v4/letter/v/96bed5/32.png) [@vlee](https://forum.mattermost.com/u/vlee)\
**Post date:** [November 30, 2017, 7:36pm UTC](https://forum.mattermost.com/t/hubot-and-mattermost-adapter/4103/10 "2017-11-30T19:36:19Z")

</div>

Hello,  
Does anyone have any advice?  
I tried running ./bin/hubot --adapter mattermost-adapter and ended up with error login call failed. If I run ./bin/hubot I get the name of my hubot. Then when I ask for adapter it is still stuck as shell.  
 ![mattermostadapter](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex020/uploads/mattermost/original/2X/e/e20797d02e25a52c8c1e50356f6e90db5ac47e4e.jpg)

---

<div class="post-metadata">

**Author:** ![lindy65](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/lindy65/32/1811_2.png) [@lindy65](https://forum.mattermost.com/u/lindy65)\
**Post date:** [December 4, 2017, 7:46am UTC](https://forum.mattermost.com/t/hubot-and-mattermost-adapter/4103/11 "2017-12-04T07:46:48Z")

</div>

Hi @vlee,

You might want to post your question to [https://github.com/loafoe/hubot-matteruser](https://github.com/loafoe/hubot-matteruser) ?

---

<div class="post-metadata">

**Author:** ![levansang](https://avatars.discourse-cdn.com/v4/letter/l/71e660/32.png) [@levansang](https://forum.mattermost.com/u/levansang)\
**Post date:** [November 1, 2019, 8:06am UTC](https://forum.mattermost.com/t/hubot-and-mattermost-adapter/4103/13 "2019-11-01T08:06:56Z")

</div>

Hi @lindy65  
currently, i use mattermost 5.16 and getting some error as @vlee.  
i try to export some variable for creating environment but login fail case happen.  
please support.  
Thank you!

- hubot version is 3.3.2

- command  
./bin/hubot --adapter mattermost-adapter

- getting error log  
[Fri Nov 01 2019 08:46:28 GMT+0000 (Coordinated Universal Time)] INFO Logging in…  
[Fri Nov 01 2019 08:46:28 GMT+0000 (Coordinated Universal Time)] DEBUG GET /users/me  
[Fri Nov 01 2019 08:46:28 GMT+0000 (Coordinated Universal Time)] ERROR Login call failed  
[Fri Nov 01 2019 08:46:28 GMT+0000 (Coordinated Universal Time)] INFO Reconnecting in 1000ms

- i use domain for setting up environment as below  
export MATTERMOST\_HOST=[chat.xxx.com](http://chat.xxx.com)  
export MATTERMOST\_HTTP\_PORT=8065  
export MATTERMOST\_WSS\_PORT=8065  
export [MATTERMOST\_USER=levansang8689@gmail.com](mailto:MATTERMOST_USER=levansang8689@gmail.com)  
export MATTERMOST\_PASSWORD=08061989aA@  
export MATTERMOST\_GROUP=chatting  
export MATTERMOST\_LOG\_LEVEL=debug  
export MATTERMOST\_TLS\_VERIFY=false  
export MATTERMOST\_USE\_TLS=false
