项目作者: hallazzang

项目描述 :
Pukyong National University LMS notifier for Slack
高级语言: Go
项目地址: git://github.com/hallazzang/pknulms-notifier.git
创建时间: 2017-11-18T12:44:03Z
项目社区:https://github.com/hallazzang/pknulms-notifier

开源协议:MIT License

下载


pknulms-notifier

Pukyong National University LMS notifier for Slack

Screenshots

Logging in:

Screenshot

You can check your job log:

Screenshot2

It posts message to slack channel:

Slack Screenshot

Installation

If you want an executable binary, see Releases.

Or build from latest source code and install into $GOPATH/bin:

  1. $ go get -u github.com/hallazzang/pknulms-notifier

This will put pknulms-notifier into your $GOPATH/bin.

Configuration

You should provide configuration file to run the program.
Open your favorite editor and write one:

  1. interval = 30 ; Crawling interval in seconds
  2. [lms]
  3. id = YOUR_STUDENT_NO ; Your LMS ID(=student number)
  4. pw = YOUR_PASSWORD ; Your LMS password
  5. [slack]
  6. webhook-url = SLACK_WEBHOOK_URL ; "https://hooks.slack.com/services/.../.../..."

Save it as config.ini or whatever you want.

Run

If you’ve added $GOPATH/bin to your $PATH, you can simply run it:

  1. $ pknulms-notifier -config=/path/to/config.ini

Otherwise, you would do like:

  1. $ $GOPATH/bin/pknulms-notifier -config=/path/to/config.ini

Requirements

pknulms-notifier is written in Golang 1.9.2. Go version under 1.7 might not work.