- this script is designed for gnu/linux, its a bash script
- for automation, cleaning, checking, and all in one "file" for managing list.txt
- verifies if user exists on twitch (twitch-dl)
- download list.txt from here (curl)
- alphabetizes and sorts list.txt
- downloads json file bot list (external) and appends to list.txt (add your own list)
- optional show diff between the final list and current list here
botlist is sanitized against "known good bots", an imprecise science, if you need removal submit an issue
- awk
- bash
- case
- cat
- curl
- diff
- echo
- grep
- jq (used to format json)
- mv
- rm
- sed
- sleep
- sort
- twitch-dl (python on github)
- uniq
- wget (removed, use curl)
- while
- xargs
bash script that reads list.txt and reports userinfo "created_at" date
ability to check userinfo for ONE user "twuserinfo jtv"
requires your oauth and client-id tokens
HELIX API login using your moderator:manage:banned_users authorization to a channel and "/ban" username from a list. also can ban in multiple channels...
requires:
oauth="your_mod_streamer_oauth_token"
clientid="your_helix_api_client_id"
usage: ./twitchautoban.sh moderatorname
optional: ./twitchautoban.sh moderatorname 1 channelname
additional files: banlist.txt
& channels.txt