This script will help you to send slack scheduled notification (message) like daily stand up meeting
, prayer reminder
etc.
Download the slack-notifier-installer.sh
file and run it with root permission. It will do all the job for you.
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
- Install
requests
python module, if you don't already have that
pip install requests
- Create a slack bot user.
- Collect the access token.
- Open
config.py
and set theslack access token
and other information likechannel name
,user name
. - Adjust the notifier time.
- Broadcast message to multiple channel
Thank you :)