Closed bipinu closed 10 years ago
The token should be an Incoming WebHook token. The room should be the common name for the channel, like "general".
As he said, I'll update the README later on to make this clearer.
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?
Is this a Laravel application or other ?
It is Laravel 4.1.23, with rocketeer and rocketeer-slack at dev-master
Did you add the Rocketeer Slack service provider to your application ?
Yup! The user was supposed to be my Slack user, right? Also, "-vv" didn't give me anything. Anyway to debug?
No actually, the username is your Slack team username, so if you visit foobar.slack.com
then your username is foobar
.
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.
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.
This isn't working for me. What exactly are the room and token values supposed to be?