more*
This commit is contained in:
parent
a0bbacfc12
commit
75acf868cc
@ -258,7 +258,11 @@ client.on("messageCreate", async mes => {
|
||||
if (process.env.ignoreMess || mes.author.id == client.user!.id) return;
|
||||
|
||||
const [mesPrefix, komandSDiakritikou, ...args] = mes.content.split(" ");
|
||||
if (oddiakritikovat(mesPrefix.toLowerCase()) != prefix) return void runEvent("messageCreate", [mes]);
|
||||
|
||||
const prefixDiff = levenshtein(oddiakritikovat(mesPrefix.toLowerCase()), prefix);
|
||||
if (prefixDiff <= 2 && mes.author.id != client.user!.id) return void mes.channel.send(`${prefix}*`);
|
||||
if (prefixDiff != 0) return void runEvent("messageCreate", [mes]);
|
||||
|
||||
if (!komandSDiakritikou) {
|
||||
if (!runEvent("messageCreate", [mes])) mes.channel.send("coe voe");
|
||||
return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user