Skip to content

mizkei/filack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

filter slack message

#install

$ go get github.com/mizkei/filack

config

create 'conf.toml'

token = "YOUR TOKEN"


[[filters]]
  [[filters.regexp_list]]
    query = "fail"
    flags = "im"
  [[filters.regexp_list]]
    query = "error"
    flags = "i"

  [filters.channel]
    id = "CHANNEL1 ID"
    name = "CHANNEL1 NAME"


[[filters]]
  [[filters.regexp_list]]
    query = "test\d"
    flags = "im"

  [filters.channel]
    id = "CHANNEL2 ID"
    name = "CHANNEL2 NAME"

default config file path is $HOME/.config/filack/conf.toml

command line options

$ filack --config=config/file/path

usage

  • linux
$ filack | while read text; do notify-send "$text"; done
  • mac
$ filack | while read text; do osascript  -e 'display notification "'"$text"'" with title "slack"'; done

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages