{"id":16304809,"url":"https://github.com/moznion/linenotcat","last_synced_at":"2025-03-22T19:35:03.779Z","repository":{"id":57614054,"uuid":"73081913","full_name":"moznion/linenotcat","owner":"moznion","description":"A command line tool to send messages to LINE Notify","archived":false,"fork":false,"pushed_at":"2017-10-10T10:06:25.000Z","size":21,"stargazers_count":30,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-18T14:15:10.815Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moznion.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-07T13:40:35.000Z","updated_at":"2021-06-11T02:34:03.000Z","dependencies_parsed_at":"2022-09-11T01:00:52.978Z","dependency_job_id":null,"html_url":"https://github.com/moznion/linenotcat","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2Flinenotcat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2Flinenotcat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2Flinenotcat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2Flinenotcat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moznion","download_url":"https://codeload.github.com/moznion/linenotcat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245013747,"owners_count":20547175,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T21:04:53.368Z","updated_at":"2025-03-22T19:35:03.488Z","avatar_url":"https://github.com/moznion.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"linenotcat\n==\n\nA command line tool to send messages to [LINE Notify](https://notify-bot.line.me/).\n\nlinenotcat = LINE NOTify + cat\n\nGetting Started\n--\n\n### 1. Put configuration file\n\n```sh\n$ echo 'YOUR_ACCESS_TOKEN' \u003e $HOME/.linenotcat\n```\n\nIt is deadly simple; this configuration file contains only access token.\n\nDefault, `linenotcat` reads configuration file that is on `$HOME` directory.\nIf you want to force it to read arbitrary file, please run the command with `--config_file` option.\n\n### 2. Send message via STDIN\n\n```sh\n$ echo 'Hello world!' | linenotcat\n```\n\n### 2'. Send contents of file\n\n```sh\n$ linenotcat ./your/awesome/file.txt\n```\n\nOptions\n--\n\n```\nApplication Options:\n  -m, --message=     Send a text message directly\n  -i, --image=       Send an image file\n  -t, --tee          Print STDIN to screen before posting (false)\n  -s, --stream       Post messages to LINE Notify continuously (false)\n      --config_file= Load the specified configuration file\n      --status       Show connection status that belongs to the token (false)\n\nHelp Options:\n  -h, --help         Show this help message\n```\n\n### -m, --message\n\nSend a text message directly.\n\ne.g.\n\n```sh\n$ linenotcat -m 'Hello world!'\n```\n\nThen `Hello world!` text will be sent via LINE Notify.\n\n### -i, --image\n\nSend an image file.\n\ne.g.\n\n```sh\n$ linenotcat -i /path/to/your/awesome/image.png\n```\n\nThen `image.png` image will be sent via LINE Notify with default message (default message=`Image file`).\n\nIf you want to send an image with arbitrary message, please use with `-m` option.\n\ne.g.\n\n```sh\n$ linenotcat -i /path/to/your/awesome/image.png -m 'Super duper image!'\n```\n\n### -t, --tee\n\nPrint STDIN to screen before posting.\n\n### -s, --stream\n\nStream messages to LINE Notify continuously.\n\ne.g.\n\n```sh\n$ tail -f /your/awesome/error.log | linenotcat --stream\n```\n\nThen contents of `error.log` are notified continuously to LINE Notify until process is died.\n\n### --config_file\n\ne.g.\n\n```sh\n$ echo 'Hello world!' | linenotcat --config_file=\"/your/path/to/config\"\n```\n\nThen this command loads token information from your specified configuration file.\n\n### --status\n\nShow connection status that belongs to the token.\n\ne.g.\n\n```sh\n$ linenotcat --status\n{\"status\":200,\"message\":\"ok\",\"targetType\":\"USER\",\"target\":\"moznion\"}\n```\n\nHomebrew\n--\n\nYou can get this tool via homebrew.\n\n```\n$ brew tap moznion/homebrew-linenotcat\n$ brew install linenotcat\n```\n\nExecutable Binaries\n--\n\nThose are on [GitHub Releases](https://github.com/moznion/linenotcat/releases)\n\nFor developers\n--\n\nThis project depends on [glide](https://github.com/Masterminds/glide).\nSo if you want to build this project, please build with glide.\n\nExample:\n\n```sh\n$ glide install\n$ go build cmd/linenotcat/linenotcat.go\n```\n\nOr you can build with `make` command\n\n```sh\n$ make VERSION=1.2.3\n```\n\nThanks\n--\n\nThis tool is much inspired by [slackcat](https://github.com/vektorlab/slackcat) and some code is taken from that.\n\nSee Also\n--\n\n- [LINE Notify](https://notify-bot.line.me/)\n\nAuthor\n--\n\nmoznion (\u003cmoznion@gmail.com\u003e)\n\nLicense\n--\n\n```\nThe MIT License (MIT)\nCopyright © 2016 moznion, http://moznion.net/ \u003cmoznion@gmail.com\u003e\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the “Software”), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoznion%2Flinenotcat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoznion%2Flinenotcat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoznion%2Flinenotcat/lists"}