Giter VIP home page Giter VIP logo

banbotstwitch's Introduction

Twitch Ban Recent Users

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.

Instructions

  1. Create credentials.json by copying credentials_example.json and inserting your own clientId and clientSecret after registering an application to the Twitch dev console

    Screenshot of how the registration could look

    {
         "$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
     }
  2. Create arguments.json by copying arguments_example.json and inserting your own channelName, 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!

  3. Run the program using the following commands:

    npm install
    npm run compile
    npm run dist
    npm run start

Binary

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

banbotstwitch's People

Contributors

anonymerniklasistanonym avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.