-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
30 lines (22 loc) · 1012 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { $, write, Glob } from "bun";
$`bunx @biomejs/biome format --write`;
await $`git add .`.quiet();
await $`git commit -m "Formatting."`.quiet();
const glob = new Glob("*/index.ts*");
const files = glob.scanSync(".");
console.log(files)
let readme =
'# M€NT4LLY G€RM4N *Equicord* Plugins <a href="https://docs.vencord.dev/installing/custom-plugins"><kbd>Installation</kbd></a>\nFor support please visit the [Equicord Discord Server](https://discord.gg/6remVCPg) and ping `<@1273447359417942128>` in the #support channel\n\n';
for (const file of files) {
if (!file.startsWith("_")) {
const {
default: { name, description },
} = await import(`./${file}`);
readme += `## ${name} <a href="https://github.com/MENTALLY-GERM4N/vencord-plugins/raw/refs/heads/main/${file.replaceAll("\\", "/")}"><kbd>Download</kbd></a>\n`;
readme += `${description}\n\n`;
}
}
await write("README.md", readme);
await $`git add .`.quiet();
await $`git commit -m "Update"`.quiet();
await $`git push`.quiet();