Compare commits

..

No commits in common. "3926f3e550050a1a59e4a1345e48dc737712e146" and "472c7489f9c8af91ed373246173ed29421aad3a5" have entirely different histories.

1 changed files with 2 additions and 2 deletions

View File

@ -10,10 +10,10 @@ module.exports = (random, kys, default_text, bot_text, excluded_names) => (ctx)
} else { } else {
const text_array = ctx.message.text.split(" "); const text_array = ctx.message.text.split(" ").trim();
if (text_array.length > 1) { if (text_array.length > 1) {
const name = text_array.slice(1).reduce((i, j) => i + " " + j).trim(); const name = text_array.slice(1).reduce((i, j) => i + " " + j);
if (excluded_names.includes(name) if (excluded_names.includes(name)
|| excluded_names.includes("@" + name)) || excluded_names.includes("@" + name))
return bot_text; return bot_text;