Sample fun utility which can help you send a message to a recipient on slack at your own convenient time(same day) without you have to open and draft the message. You should also pass your "status" info(Show as Active/Show as Away) to this utility.
Remember to download the png image files in your local Ubunutu/Mac system and use the correct path in the code for these images.
Also includes a helper bash script which helps to set up all necessary environments/packages etc. for this program to run. Just make sure to give execute permissions to the bash script.
- Download/Clone the entire repo and unzip in your local system at any directory of your choice.
- Give executable permission to setup_slack_env.bash file.
- Run the following command to activate the virtual environment:
source slack-env/bin/activate
- Now make sure to update the path of all the images used in slack_schedule_send_app.py with the path where you have copied this folder contents.
- Now see the examples below to run the actual utility
Example 1: Launch slack and set yourself as Away and send 'hi there' to 'Deepak B' user at this time: 20:03:03"
python3 slack_schedule_send_app.py 'Deepak B' 'hi there' 20:03:03 Away
Example 2: Launch slack and set yourself as Active and send 'hi there' to 'John haywire' user at this time: 20:50:02"
python3 slack_schedule_send_app.py 'Deepak B' 'hi there' 20:50:40 Active