1
0

chore: Idk

This commit is contained in:
2026-01-30 19:18:04 +01:00
parent 16f6eef215
commit e78ee594a0
4 changed files with 88 additions and 1 deletions

View File

@@ -1,3 +1,17 @@
/*
* Copyright (C) 2025 Jakub Žitník
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
import axios from "axios";
import { CookieJar } from "tough-cookie";
import { wrapper } from "axios-cookiejar-support";

28
scripts/setup.js Normal file
View File

@@ -0,0 +1,28 @@
/*
* Copyright (C) 2025 Jakub Žitník
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
import fs from "fs";
const DIRS = [
"db/persistent",
"db/v3",
];
for (const dir of DIRS) {
try {
fs.mkdirSync(dir);
} catch {}
}
// LEAVE ME ALONE I KNOW THIS CODE IS SHIT