summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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