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",
"version": "3001.33.0",
"version": "3001.33.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "denim_3001",
"version": "3001.33.0",
"version": "3001.33.1",
"license": "ISC",
"dependencies": {
"@discordjs/opus": "github:discordjs/opus",

View File

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

View File

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