summaryrefslogtreecommitdiffstats
path: root/bin/hush/twitch
blob: 79473f26f091d2e7eba357b115ef6bc72f22d59f (plain) (blame)
1
2
3
4
5
6
7
8
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