This commit is contained in:
Flummi 2022-01-02 14:38:04 +01:00
parent 0a983b140e
commit 6d185bd52f
4 changed files with 12 additions and 2 deletions

8
debug/test.mjs Normal file
View File

@ -0,0 +1,8 @@
import f0cklib from "../src/inc/routes/inc/f0cklib.mjs";
console.log(
await f0cklib.getRandom({
user: '',
fav: true
})
);

View File

@ -6,7 +6,8 @@
"scripts": {
"start": "node --experimental-json-modules src/index.mjs",
"trigger": "node --experimental-json-modules debug/trigger.mjs",
"autotagger": "node --experimental-json-modules debug/autotagger.mjs"
"autotagger": "node --experimental-json-modules debug/autotagger.mjs",
"test": "node --experimental-json-modules debug/test.mjs"
},
"author": "Flummi",
"license": "MIT",

View File

@ -372,6 +372,7 @@ html[theme="iced"] {
--badge-tag: #22083c;
--scrollbar-color: #2b2b2b;
--scroller-bg: #424242;
--tooltip-bg: #0a3f53;
}
html[theme="iced"] .navbar-brand:hover {

View File

@ -52,7 +52,7 @@ export default async bot => {
// generate uuid
const uuid = (await sql.select(sql.raw("gen_random_uuid() as uuid")))[0].uuid.substring(0, 8);
const maxfilesize = (getLevel(e.user).level > 50 ? cfg.main.maxfilesize * 2.5 : cfg.main.maxfilesize) / 1024;
const maxfilesize = (getLevel(e.user).level > 50 ? cfg.main.maxfilesize * 3.5 : cfg.main.maxfilesize) / 1024;
let meta;
// read metadata