Skip to content

KeisukeYamashita/notifyer

Repository files navigation

Notifyer

License GoDoc GolangCI Go Report Card



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

Service name Status
Discord
Slack
Line

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