Automatically ban recent followers or a list of users.
Origin: In case you get a bot/hate raid you can use the following program to ban all of them automatically.
-
Create
credentials.json
by copyingcredentials_example.json
and inserting your ownclientId
andclientSecret
after registering an application to the Twitch dev console{ "$schema": "./src/credentials.schema.json", "clientId": "GET THIS FROM https://dev.twitch.tv/console/apps", "clientSecret": "GET THIS FROM https://dev.twitch.tv/console/apps", "scopes": [ "chat:read", "chat:edit", "moderator:read:followers", "moderator:manage:banned_users" ], "redirectPort": 7270 }
-
Create
arguments.json
by copyingarguments_example.json
and inserting your ownchannelName
,banReason
,userNamesToBan
and the number of minutes where followers should be banned (banUsersWhoFollowedInTheLastMinutes
){ "$schema": "./src/arguments.schema.json", "channelName": "TODO Insert your own channel", "banReason": "TODO Delete or add your own reason", "userNamesToBan": [], "banUsersWhoFollowedInTheLastMinutes": 20, "dryRun": true, "verbose": true }
Run this program at least once with
dryRun = true
to verify that the right followers will be banned! -
Run the program using the following commands:
npm install npm run compile npm run dist npm run start
You can build a standalone binary of this project using the following commands:
npm install
npm run compile
npm run dist
npm run pkg
Which can then be run using the following commands:
# Linux
./bin/banbots-linux-x64
# Windows
.\bin\banbots-win-x64.exe