Skip to content

farridav/slacking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slacking playground

A command line script that (given a webhook), reads messages from a file, and posts them to slack, written in Python3, Go, and SCALA

Setup

First setup an incoming webhook in slack and grab the url, (see http://bit.ly/2EapumJ for detailed instructions)

Usage

Python

Testing

./python/test.py

Running

./python/send.py --help
./python/send.py --webhook https://hooks.slack.com/services/XXXXX/XXXXX

Go

cd go
go run send.go --help
go run send.go --webhook https://hooks.slack.com/services/XXXXX/XXXXX

SCALA

cd scala
./send.sh https://hooks.slack.com/services/XXXXX/XXXXX

Futrue Enhancements

  • Add tests for Go Implementation
  • Allow Go script to run from anywhere (fix relative path lookup)
  • Add tests for SCALA Implementation
  • Tidy up SCALA implementation, extend App class

About

Testing Slack webhooks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published