Send message to Slack
-
Hello,
could it be possible to send, as the Pushbullet plugin, messages to Slack account ?
Here is the site of Slack if someone want details : https://slack.com/https://api.slack.com/methods/chat.postMessage
Thank you.
-
Thanks for suggesting. I made a wrapper that gives us ultimate access to ALL the api the slack provides.
You call it (within the plugin or wherever else you may want it), with:
SlackHandler->call(‘apiToCall’,argumentsassassociativearray);
Right now it’s only functionality includes the same things that the pushbullet does.
Add your token, and the username you want it to post to, and it will send the message as slackbot.
-
@Tom-Elliott you are wonderful. lol
-
I love this, is there any plugin documentation yet? I’m trying to find where I get the slack API key
-
@sourceminer See below for test tokens. You’ll probably want a permanent one eventually though.
-
@Wayne-Workman Sweet thanks for the response… I must have missed this, Was looking all over.
-
@Wayne-Workman So I have added the API Key, added the channel (with the Hash symbol right?) Im not seeing any updates.
-
@sourceminer Ask @Tom-Elliott about it, I think he’s the one that made the plugin.
-
@sourceminer I’m not seeing an issue with the slack plugin. The channel/user only get’s updated at specific points.
There’s not a lot of “events” that slack (and pushbullet for that matter) use to present the user with a message. Right now there’s only:
- Login failures
- Image completetion (up or down).
- Snapin Completions (One for each snapin installed and completed, and a final one stating the tasking as a whole is complete.
-
@Tom-Elliott said in Send message to Slack:
@sourceminer I’m not seeing an issue with the slack plugin. The channel/user only get’s updated at specific points.
There’s not a lot of “events” that slack (and pushbullet for that matter) use to present the user with a message. Right now there’s only:
- Login failures
- Image completetion (up or down).
- Snapin Completions (One for each snapin installed and completed, and a final one stating the tasking as a whole is complete.
#wiki worthy
-
@Tom-Elliott Thanks, so yes I have the API Key, and the channel I created in my Slack called #deployment. I have deployed and installed snap-ins but have not seen any updates to the channel.
-
@sourceminer If you look at the channel I’ll bet the messages are there.
The reason you don’t see it “updating” is because from slack’s perspective, the message is coming from you.
-
@Tom-Elliott Sorry but no messages in that channel. I just see this message: sourceminer [8:34 AM]
deployments Account linked to FOG GUI at: fog.domain.net -
@sourceminer Hello, I never tested using a channel but using a private message works fine with test token.
You can also create your bot : https://my.slack.com/services/new/botHere is my conf :