if you spink, message "more" is nolonger allowed

This commit is contained in:
Histmy 2022-03-26 18:00:33 +01:00
parent 3f3a1253a8
commit 1cf36fe516

View File

@ -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(" ");