oddiakritikování of prefix

This commit is contained in:
Histmy 2021-09-15 16:35:44 +02:00
parent a3d07ede72
commit 6369ea2720

View File

@ -77,7 +77,7 @@ client.on("messageCreate", mes => {
if (process.env.ignoreMess) return; if (process.env.ignoreMess) return;
const [mes_prefix, komandSDiakritikou, ...args] = mes.content.split(" "); const [mes_prefix, komandSDiakritikou, ...args] = mes.content.split(" ");
if (mes_prefix.toLowerCase() !== prefix) return void runEvent("message", [mes]); if (oddiakritikovat(mes_prefix.toLowerCase()) != prefix) return void runEvent("message", [mes]);
if (!komandSDiakritikou) return void mes.channel.send("coe voe"); if (!komandSDiakritikou) return void mes.channel.send("coe voe");
const komand = oddiakritikovat(komandSDiakritikou).toLowerCase(); const komand = oddiakritikovat(komandSDiakritikou).toLowerCase();