diff options
author | Jesse Luehrs <doy@tozt.net> | 2020-06-08 23:42:48 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2020-06-08 23:42:48 -0400 |
commit | f0d165457b881f1ed219d3d0c53ca3afc45e2be2 (patch) | |
tree | 6a550bdd6440c76b2e8d85f538ad2f5f6adc5187 | |
parent | 16ba00fb2fdb84a433f4be5ee24bb6af2b9bc28e (diff) | |
download | conf-f0d165457b881f1ed219d3d0c53ca3afc45e2be2.tar.gz conf-f0d165457b881f1ed219d3d0c53ca3afc45e2be2.zip |
add script to start a twitch stream
-rwxr-xr-x | bin/hush/twitch | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/hush/twitch b/bin/hush/twitch new file mode 100755 index 0000000..79473f2 --- /dev/null +++ b/bin/hush/twitch @@ -0,0 +1,9 @@ +#!/bin/sh + +if [ -z "${1}" ]; then + ssh partofme killall vlc + echo '*/buffer close twitch.#' > ~/.weechat/weechat_fifo +else + ssh partofme sh -c "'nohup twitch ${1} > /dev/null 2>&1 &'" + echo "irc.server.twitch */join #${1}" > ~/.weechat/weechat_fifo +fi |