summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2020-06-08 23:42:48 -0400
committerJesse Luehrs <doy@tozt.net>2020-06-08 23:42:48 -0400
commitf0d165457b881f1ed219d3d0c53ca3afc45e2be2 (patch)
tree6a550bdd6440c76b2e8d85f538ad2f5f6adc5187
parent16ba00fb2fdb84a433f4be5ee24bb6af2b9bc28e (diff)
downloadconf-f0d165457b881f1ed219d3d0c53ca3afc45e2be2.tar.gz
conf-f0d165457b881f1ed219d3d0c53ca3afc45e2be2.zip
add script to start a twitch stream
-rwxr-xr-xbin/hush/twitch9
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