Simple slack bot that follows file for specific char sequence and notifies you when it appears.
Made for personal use, to follow Maven build log, which takes forever for large projects.
Setting up:
SLACK_BOT_TOKEN = "Your slack bot token"
BOT_ID = "Yout slack bot id"
You can find out about how to get bot token and more info at Slack API page
Note that app must run in same machine as your file you want to follow
Simply run bot.py after setting configuration as specefied above.
In Slack conversation with your bot type:
- "set file_name following_text"
- Set a file to follow and text to wait for.
- "start"
- Start following. It will notify you, when text occurs.
- "follow file_name following_text"
- Set a file to follow and text to wait for and start following.
- "stop"
- Stop following.