Slack bot codes
- Crawler: Crawling notices on sites of ssu, sw.
- Poster: Post to slack by webhook url.
If you want to use crawler of ssu notice, use following steps.
-
Generate webhook url (channel or DM)
https://api.slack.com/apps/<Workspace ID>/incoming-webhooks?
* (Be careful for security) WorkSpace ID and Webhook urls are each unique string, DO NOT UPLOAD TO GIT.
- Manage to webhooks dicts: run webhook.py
- Use add feature.
python3 webhook.py
python3 main.py
You can post some contents to slack by using one function.
Then use post_to_slack(message, webhook_url)
in /bot/post.py
Creates Github issue or contacts to [email protected]