chore: 小调整

This commit is contained in:
手瓜一十雪
2024-08-10 17:29:24 +08:00
parent dac361bcde
commit cff33b3d0d
6 changed files with 8 additions and 12 deletions

View File

@@ -3,6 +3,7 @@ import path from "node:path";
import fs from "fs";
import * as fsPromise from "node:fs/promises";
import os from "node:os";
import { QQLevel } from "@/core";
//下面这个类是用于将uid+msgid合并的类
@@ -152,3 +153,7 @@ export async function deleteOldFiles(directoryPath: string, daysThreshold: numbe
//console.error('Error deleting files:', error);
}
}
export function calcQQLevel(level: QQLevel) {
const { crownNum, sunNum, moonNum, starNum } = level;
return crownNum * 64 + sunNum * 16 + moonNum * 4 + starNum;
}