pknulms-notifier

command module
v0.0.0-...-4ee15ef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2017 License: MIT Imports: 9 Imported by: 0

README

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:

$ 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:

interval = 30 ; Crawling interval in seconds

[lms]
id = YOUR_STUDENT_NO ; Your LMS ID(=student number)
pw = YOUR_PASSWORD ; Your LMS password

[slack]
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:

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

Otherwise, you would do like:

$ $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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL