1
0
Fork 0
Bsian 2019-11-16 19:29:20 +00:00
commit 97152cd063
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
3 changed files with 3 additions and 5 deletions

View File

@ -8,7 +8,7 @@
"build": "tsc -p ./tsconfig.json" "build": "tsc -p ./tsconfig.json"
}, },
"author": "Library of Code sp-us Engineering Team", "author": "Library of Code sp-us Engineering Team",
"license": "MIT", "license": "AGPL-3.0-only",
"private": false, "private": false,
"dependencies": { "dependencies": {
"@ghaiklor/x509": "^1.0.0", "@ghaiklor/x509": "^1.0.0",

View File

@ -1,8 +1,6 @@
import uuid from 'uuid/v4';
import { Client } from '..'; import { Client } from '..';
import { RichEmbed } from '../class';
export default function checkLock(client: Client) { export default function checkLock(client: Client): void {
setInterval(async () => { setInterval(async () => {
try { try {
const moderations = await client.db.Moderation.find(); const moderations = await client.db.Moderation.find();

View File

@ -1,4 +1,4 @@
export default function dataConversion(bytes) { export default function dataConversion(bytes: number): string {
const i = Math.floor(Math.log(bytes) / Math.log(1024)); const i = Math.floor(Math.log(bytes) / Math.log(1024));
const sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']; const sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
if (bytes === 0) { if (bytes === 0) {