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.
17 lines
271 B
Plaintext
17 lines
271 B
Plaintext
3 years ago
|
#!/bin/sh
|
||
|
|
||
|
# Uses Weechat to ban a target on Twitch.
|
||
|
|
||
|
if [ -z "$TWITCH_USER" ]; then
|
||
|
echo '$TWITCH_USER environment variable not set.'
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
if [ -z "$1" -o -z "$2" ]; then
|
||
|
echo 'usage: ban <twitchid> <reason>'
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
wee "/msg $TWITCH_USER /ban $1 $2"
|
||
|
|