hopefully finally fixed ps

This commit is contained in:
Histmy 2021-11-24 20:48:03 +01:00
parent c43ec012c0
commit 24f37da5ce
3 changed files with 6 additions and 6 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "denim_3001", "name": "denim_3001",
"version": "3001.33.0", "version": "3001.33.1",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "denim_3001", "name": "denim_3001",
"version": "3001.33.0", "version": "3001.33.1",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@discordjs/opus": "github:discordjs/opus", "@discordjs/opus": "github:discordjs/opus",

View File

@ -1,6 +1,6 @@
{ {
"name": "denim_3001", "name": "denim_3001",
"version": "3001.33.0", "version": "3001.33.1",
"description": "Toto je velmi kvalitní bot.", "description": "Toto je velmi kvalitní bot.",
"repository": { "repository": {
"url": "https://github.com/Histmy/Denim-Bot/" "url": "https://github.com/Histmy/Denim-Bot/"

View File

@ -139,9 +139,9 @@ const exp: Modul = {
const f = arg != ""; const f = arg != "";
if (!ping.test(arg) && f) return "sikkt"; if (!ping.test(arg) && f) return "sikkt";
const id = f ? mes.mentions.members?.first()?.id : mes.author.id; const id = f ? mes.mentions.members?.first()?.id : mes.author.id;
if (!id) return `tuten kkt jeste nespal ${emouty.lukiw}`; const tajmUp = spinkacky[id ?? ""]?.timeup;
const tajmUp = spinkacky[id]?.timeup; if (tajmUp == undefined) return `tuten kkt jeste nespal ${emouty.lukiw}`;
if (typeof tajmUp !== "number") return "ten kkt jiz ickon spi"; if (!tajmUp) return "ten kkt jiz ickon spi";
const cas = Number(new Date()) - Number(new Date(tajmUp)); const cas = Number(new Date()) - Number(new Date(tajmUp));
return `uz ${f ? "je" : "jsi"} vzhuru ${formatCas(cas / 1000)}`; return `uz ${f ? "je" : "jsi"} vzhuru ${formatCas(cas / 1000)}`;
} }