Skip to content

SSU-SOFT/ssutice

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slack_bot

Slack bot codes

Features

  • Crawler: Crawling notices on sites of ssu, sw.
  • Poster: Post to slack by webhook url.

Usage

If you want to use crawler of ssu notice, use following steps.

Step 1. Register your webhook url.

  • 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

Step 2. Run Main

python3 main.py

Post

You can post some contents to slack by using one function.

Then use post_to_slack(message, webhook_url) in /bot/post.py

Issue

Creates Github issue or contacts to [email protected]

About

Notice bot for ssu notices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%