rocketeers / rocketeer-slack

Slack notifications for Rocketeer
MIT License
29 stars 8 forks source link

Configuration related question #3

Closed bipinu closed 10 years ago

bipinu commented 10 years ago

This isn't working for me. What exactly are the room and token values supposed to be?

mcrumm commented 10 years ago

The token should be an Incoming WebHook token. The room should be the common name for the channel, like "general".

Anahkiasen commented 10 years ago

As he said, I'll update the README later on to make this clearer.

bipinu commented 10 years ago

I did create an use an incoming webhook token, but doesn't seem to work. Do I have to do something from rocketeer to invoke this plugin?

Anahkiasen commented 10 years ago

Is this a Laravel application or other ?

bipinu commented 10 years ago

It is Laravel 4.1.23, with rocketeer and rocketeer-slack at dev-master

Anahkiasen commented 10 years ago

Did you add the Rocketeer Slack service provider to your application ?

bipinu commented 10 years ago

Yup! The user was supposed to be my Slack user, right? Also, "-vv" didn't give me anything. Anyway to debug?

Anahkiasen commented 10 years ago

No actually, the username is your Slack team username, so if you visit foobar.slack.com then your username is foobar.

bipinu commented 10 years ago

Facepalm! Of course! I had implemented messaging successfully using a after-deploy hook to rocketeer, and was wondering why doesn't rocketeer-slack ask for my sub-domain. If only I'd asked that question a bit longer to myself.

Thanks! Will test now.

bipinu commented 10 years ago

Sorry, still doesn't work. The following, when put in hooks.php of rocketeer works: 'curl -X POST --data \'payload={"channel": "#<--ROOM-->", "username": "TheDude", "text": "\'"$USER"\' deployed code on Staging", "icon_emoji": ":beer:"}\' https://<--USER-->.slack.com/services/hooks/incoming-webhook?token=<--TOKEN-->'

However, the same values when put in rocketeer-slack do nothing at all.