Skip to content

robobario/slack_differ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

slack_differ

a python script that sends messages to a slack webhook when the output from a script changes

dependencies

python python sh (https://pypi.python.org/pypi/sh)

what it does

The script looks for files ending with .json inside a scripts dir. It executes them and records their stdout. If the output has changed it pushes to a configured slack webhook.

how to get started

  1. run slack_differ.py example
  2. chmod +x the example.sh it produces under the new scripts dir
  3. change the configuration in scripts/example.json to match your webhook url

example configuration json

{  
  "script":"example.sh",
  "title":"script title",
  "user":"examplebot",
  "slack_url":"https://hook.slack.com/XXX/YYY",
  "channel":"#example",
  "emoji":":metal:"
}

About

a python script that sends messages to a slack webhook when the output from a script changes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages