Last active
January 23, 2016 07:03
-
-
Save yukirii/a3f25c6418fa718f8f15 to your computer and use it in GitHub Desktop.
TvRock の録画開始/終了を Slack に Post する (参考: http://qiita.com/seya128/items/f5ceb7abac3d158304b6)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal | |
set URL=https://hooks.slack.com/services/XXXXXXXXXX/XXXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | |
set TO="#general" | |
set FROM="TvRock" | |
set ICON_EMOJI=":tv:" | |
echo {"text":%1,"channel":%TO%,"username":%FROM%,"icon_emoji":%ICON_EMOJI%} | C:\dtv\postslack\nkf -w | C:\dtv\postslack\curl -k -X POST --data-urlencode payload@- %URL% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CS: C:\dtv\postslack\postslack.bat "[%h 録画開始] %d (%i/%j-%k-%l) - %g" | |
CE: C:\dtv\postslack\postslack.bat "[%h 録画終了] %d (%i/%j-%k-%l) - %g" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment