rwxrob-dot/scripts/ban
Rob Muhlestein 2ea0289e9f Rebase
2022-02-09 02:29:05 -05:00

17 lines
271 B
Bash
Executable File

#!/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"