mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 13:05:09 +00:00
chore: 小调整
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user