Created
October 9, 2016 07:53
-
-
Save ashwanthkumar/2db562521ac30e6de0ec6835b05f6b9a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import in.ashwanthkumar.slack.webhook.Slack | |
import in.ashwanthkumar.slack.webhook.SlackMessage | |
def webhookUrl = args[0] | |
new Slack(webhookUrl) | |
.icon(":smiling_imp:") // Ref - http://www.emoji-cheat-sheet.com/ | |
.sendToChannel("z_development") | |
.displayName("slack-java-client") | |
.push(new SlackMessage("Text from my ").bold("Slack-Java-Client")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment