Skip to content

Instantly share code, notes, and snippets.

Created Oct 14, 2016
What would you like to do?
Let Slack notify you when your script is finished running!
# This is a simple script that will allow Slack to notify you when your script is finished running.
# Specifically, you will receive a message that says: "Script Complete".
# But first, you need to generate a Slack token.
# See here:
from slacker import Slacker
slack = Slacker(Token)
# Send a message to #CHANNEL.
# Adjust CHANNEL and USERNAME to suit your needs.
# Be sure that this line is placed at the end of your script.
message ='#CHANNEL',"@USERNAME Script Complete", as_user = False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment