/FloppaPowerData

🐈 "Go away, selfbots!" - List of known selfbots IDs and other data to help you keep them away from your server

Creative Commons Attribution Share Alike 4.0 InternationalCC-BY-SA-4.0

🐈 FloppaPower 🐈

List of known selfbots IDs and other data to help you keep them away from your server, contributed by other administrators in the Elite Penguin Force Server. 🐧

📅 Info

👨‍💻 Reading CSVs Examples

Node.js

const csv = require('csv-parser');
const fs = require('fs');

fs.createReadStream('blocked_users.csv')
  .pipe(csv())
  .on('data', (row) => {
    console.log("Please ban ID " + row["user"] + "! Thank you!!")
    console.log();
  })
  .on('end', () => {
    console.log('CSV file successfully processed!');
});

Go

package main

import (
    "encoding/csv"
    "fmt"
    "os"
)

type banData struct {
    user string
    entry string
    valid string
}
func main() {

    csvFile, err := os.Open("blocked_users.csv")
	if err != nil {
		fmt.Println(err)
	}
	fmt.Println("Successfully Opened CSV file!")
	defer csvFile.Close()
    
    csvLines, err := csv.NewReader(csvFile).ReadAll()
    if err != nil {
        fmt.Println(err)
    }    
    for _, line := range csvLines {
        banList := banData{
            user: line[0],
            entry: line[1],
			valid: line[2],
        }
        fmt.Println("User: " + banList.user + ", Entry number: " + banList.entry + ", Valid: " + banList.valid)
    }
}