2023-03-04 05:03:46 -08:00
|
|
|
const fs = require("fs");
|
|
|
|
|
|
|
|
// Read the file from private/sort-contributors.txt
|
|
|
|
const file = fs.readFileSync("private/sort-contributors.txt", "utf8");
|
|
|
|
|
|
|
|
// Convert to an array of lines
|
|
|
|
let lines = file.split("\n");
|
|
|
|
|
|
|
|
// Remove empty lines
|
|
|
|
lines = lines.filter((line) => line !== "");
|
|
|
|
|
|
|
|
// Remove duplicates
|
|
|
|
lines = [ ...new Set(lines) ];
|
|
|
|
|
|
|
|
// Remove @weblate and @UptimeKumaBot
|
2023-03-20 03:02:24 -07:00
|
|
|
lines = lines.filter((line) => line !== "@weblate" && line !== "@UptimeKumaBot" && line !== "@louislam");
|
2023-03-04 05:03:46 -08:00
|
|
|
|
|
|
|
// Sort the lines
|
|
|
|
lines = lines.sort();
|
|
|
|
|
|
|
|
// Output the lines, concat with " "
|
|
|
|
console.log(lines.join(" "));
|