notifyer

Notification util written in golang

MIT License

Stars
4

Notifyer

Extendable notification tool for various services

notifyer is a notification tool written in golang. It will read stdin and sends notification to services such as Slack, Discord and so on. You will have to configure by writting TOML file. Don't worry, it is very very simple to configure and to use.

Install

homebrew

$ brew tap KeisukeYamashita/notifyer
$ brew install notifyer

git

$ git clone https://KeisukeYamashita/notifyer
$ make install

Sample Usage

Post message to slack.

cat message.txt | notifyer slack

See below for detailed usage and supported services.

Supports

Input

Currently supports sdtin only.

Output

Usage

Config file

The script will check the following files for configuration.

  1. NOTIFYER_PATH env var
  2. $HOME/.notify_discord

The config toml file should be in this format.

[slack]
url         = "hogehoge"
channel     = "poip"

[linebot]
accessToken = ""
to          = ""

[discord]
url         = "https://"

Slack

echo "Hello fron Notifyer" | notifyer slack

Line

echo "Hello fron Notifyer" | notifyer linebot

Discord

echo "Hello fron Notifyer" | notifyer discord

Docker mode

Also docker images are supported.

echo "Hello from Notifyer" | docker run  -v $HOME/.notifyer.toml:/root/.notifyer.toml 1915keke/notifyer:0.1.0 slack 

Contribution

  • I welcome your contributions.
    • Please send issues and pull requests.

License

Notifyer is released under the MIT license.

2019 GitHub, Inc.

Author

Package Rankings
Top 13.04% on Proxy.golang.org
Badges
Extracted from project README
License GoDoc GolangCI Go Report Card