mirror of https://github.com/rwxrob/dot
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
224 B
Plaintext
16 lines
224 B
Plaintext
3 years ago
|
#!/bin/sh
|
||
|
|
||
|
name="$1"
|
||
|
|
||
|
if [ -z "$1" ]; then
|
||
|
name=$TWITCH_LOGIN
|
||
|
fi
|
||
|
|
||
|
if [ -z "${name}" ]; then
|
||
|
echo "\$TWITCH_LOGIN not set"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
youtube-dl -F "https://twitch.tv/$name" \
|
||
|
| map 'm,^\d+p(\S+)?, && say $&'
|