mirror of
https://github.com/rwxrob/dot
synced 2024-11-14 18:12:56 +00:00
17 lines
271 B
Plaintext
17 lines
271 B
Plaintext
|
#!/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"
|
||
|
|