Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/farridav/slacking

Testing Slack webhooks
https://github.com/farridav/slacking

Last synced: about 1 month ago
JSON representation

Testing Slack webhooks

Awesome Lists containing this project

README

        

# 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