Python language to use slack notifications
Very simple slack client by using slack api webhook.
To install slack-notifications, simply:
$ sudo pip install slack_notification
or from source:
$ sudo python setup.py install
Get a token of slack webhook on slack page.
Instantiate:
> import slack_notification > slack = slackweb.Slack(url="https://hooks.slack.com/services/XXXXXXXXXX/XXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX")
In case that you want to send a simple message:
> slack.notify(text="Don't even trip dawg")
In case that you want to send a custom message:
> slack.notify(text="get schwifty!!", channel="#showmewhatyougot", username="rick")
More detail description of message formatting, refer according pages: