GithubHelp home page GithubHelp logo

twitch_bulk_ban's Introduction

Twitch Massive BAN Tool

English:

This is a tool for Twitch mods to ban a lot of people on a lot of channels without doing manually.

Requirements

To use this tool, you need:

  • Node.js and NPM installed on your computer
  • a token generated here: https://twitchtokengenerator.com/ with the following permission active:
    • chat:read
    • channel:moderate

Windows installation

  1. install node.js and npm: https://docs.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-windows
  2. open PowerShell (select the option "Run as Administrator")
  3. on PowerShell, enter inside the script folder
  4. type npm install

MacOS installation

  1. install node.js and npm: https://www.programsbuzz.com/article/install-node-js-and-npm-mac-os
  2. open the terminal (Applications/Utility/Terminal)
  3. on Terminal, enter inside the script folder
  4. type npm install

Linux installation

  1. installa node.js and npm: https://linuxconfig.org/how-to-install-node-js-on-linux
  2. open the terminal (depends by the distro, usually is home/Accessories/Terminal)
  3. on Terminal, enter inside the script folder
  4. type npm install

Configuration

To make this tool works, it's required to edit those files: config.json and banlist.txt. Inside config.json you have to write:

Inside banlist.txt you have to insert the users to ban. A line, a user banned.

It's required to format the text as it follows:

username,reason to ban

Execution

To begin the MASSIVE BAN, just type npm run ban in the Terminal, inside the tool folder. I you want to use a different text file, type node ban.js -f path/to/file.txt.

You can also choose the starting index of the list of users to ban, by using the -i option: node ban.js -f path/to/file.txt -i 10

This is useful when Twitch returns no response, so you don't have to start again from the beginning.

If you have a list of users but you don't know which one is real or active, you can use -w to filter and write them on a separate textfile.

For a brief list of available options, just type node ban.js -h

Have fun!

Italian:

Questo Tool per bannare tantissimi utenti da tantissimi canali senza che tu debba stare a farlo manualmente.

Prerequisiti

Per poter utilizzare questo tool è necessario avere:

Installazione Windows

  1. installa node.js e npm: https://docs.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-windows
  2. apri PowerShell (seleziona l'opzione "Esegui come amministratore")
  3. da PowerShell, entra nella cartella dello script
  4. digita npm install

Installazione MacOS

  1. installa node.js e npm: https://www.nodeacademy.it/installare-node-js-mac-os-x/
  2. apri il terminale (Applicazioni/Utility/Terminale)
  3. da terminale, entra nella cartella dello script
  4. digita npm install

Installazione Linux

Dai zio, fai il serio. Se hai Linux sai già come fare. Scherzi a parte:

  1. installa node.js e npm: https://linuxconfig.org/how-to-install-node-js-on-linux
  2. apri il terminale (dipende dalla distro, ma solitamente è home/Accessori/Terminale)
  3. da terminale, entra nella cartella dello script
  4. digita npm install

Configurazione

Per far funzionare lo script è necessario editare i file config.json e banlist.txt. Dentro config.json devi inserire:

Dentro banlist.txt inserisci la gente che si vuole bannare. Una riga, un utente bannato.

Le righe devono essere formattate in questo modo:

username,reason to ban

Esecuzione

Per iniziare l'opera di Ban Massivo, digitare nel terminale/PowerShell, sempre all'interno della cartella dello script, npm run ban. Se volete usare un altro file, digitate node ban.js -f percorso/del/file.txt.

Lo script inizierà a bannare gli utenti su ogni singolo canale inserito nel file config.json. Ci impiega un pò perchè a Twitch non piace quando gli si inviano tante richieste provenienti dallo stesso indirizzo IP allo stesso momento.

È possibile selezionare un punto di inizio della liste degli utenti da bannare con l'opzione -i, es. node ban.js -f path/to/file.txt -i 10

Questa opzione è utile nel caso Twitch rifiuta di rispondere alla richiesta, in questo modo si evita di ricominciare tutto da capo.

Se hai una lista di utenti ma non sai quali sono quelli reali o attivi, puoi usare l'opzione -w, in modo da filtrarli e salvarli in un file separato.

Per una breve lista di opzioni disponibili, basta digitare node ban.js -h

Divertitevi!

twitch_bulk_ban's People

Contributors

zeroerrequattro avatar

Stargazers

DevEsquilo avatar  avatar Francesco Vaiani avatar Antonio Bellotta avatar  avatar

Watchers

James Cloos avatar  avatar

twitch_bulk_ban's Issues

Mass ban fails every now and then

Hello!
A friend asked me to write something similar to this, so I was happy to find this repository. The code only has one problem. Every now and then I would get a No response from Twitch error and that would stop the execution here:

.catch(async e => {
        console.log(channels[j],e,`- delay: ${time}ms`)
        if(
          e !== 'already_banned'
          && e !== 'invalid_user'
        ) {
          process.exit(1)
        }
      })

When I commented the if statement out, the code works fine. I still get the No response from Twitch response but everyone still gets banned.

Just wanted to let you know :)

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.