From 1cf36fe516099a07bed210fc79edd93c6fb734c8 Mon Sep 17 00:00:00 2001 From: Histmy Date: Sat, 26 Mar 2022 18:00:33 +0100 Subject: [PATCH] if you spink, message "more" is nolonger allowed --- src/app.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app.ts b/src/app.ts index 8def77c..272d5f5 100644 --- a/src/app.ts +++ b/src/app.ts @@ -123,7 +123,10 @@ client.on("messageCreate", async mes => { const [mesPrefix, komandSDiakritikou, ...args] = mes.content.split(" "); if (oddiakritikovat(mesPrefix.toLowerCase()) != prefix) return void runEvent("message", [mes]); - if (!komandSDiakritikou) return void mes.channel.send("coe voe"); + if (!komandSDiakritikou) { + if (!runEvent("message", [mes])) mes.channel.send("coe voe"); + return; + } const celArgs = args.join(" ");