thedevsaddam / slack-notifier

This script will help you to send slack scheduled notification (message)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slack notifier

This script will help you to send slack scheduled notification (message) like daily stand up meeting, prayer reminder etc.


Installation

Easy Way

Download the slack-notifier-installer.sh file and run it with root permission. It will do all the job for you.

Hard Way

Open terminal ( ctrl+alt+t ) and go to Downloads directory

cd ~/Downloads/

Clone the repository

git clone https://github.com/thedevsaddam/slack-notifier.git

or download the zip file manually and unzip to Downloads directory

Change permission to 777

sudo chmod -R 777 notifier

Open crontab in edit mode

crontab -e

Copy the line below and paste

* * * * * python /home/YOUR_USER_NAME/Downloads/slack-notifier/notifier.py

Replace YOUR_USER_NAME by your user name.

Note: To get username type whoami in interminal

Configuration

  1. Install requests python module, if you don't already have that
pip install requests
  1. Create a slack bot user.
  2. Collect the access token.
  3. Open config.py and set the slack access token and other information like channel name, user name.
  4. Adjust the notifier time.

Contributors

TODO

  • Broadcast message to multiple channel

Thank you :)

About

This script will help you to send slack scheduled notification (message)


Languages

Language:Python 92.6%Language:Shell 7.4%