Compare commits
No commits in common. "b0eff87e72b8d9b2c1af46b7a74a1dd9b96a6a44" and "53dda834f9c04aa19b2f3e2bf316ddf428793d69" have entirely different histories.
b0eff87e72
...
53dda834f9
|
@ -13,7 +13,7 @@ module.exports = (random, kys, default_text, bot_text, excluded_names) => (ctx)
|
|||
const text_array = ctx.message.text.split(" ");
|
||||
if (text_array.length > 1) {
|
||||
|
||||
const name = text_array.slice(1).reduce((i, j) => i + " " + j).trim();
|
||||
const name = text_array[1];
|
||||
if (excluded_names.includes(name)
|
||||
|| excluded_names.includes("@" + name))
|
||||
return bot_text;
|
||||
|
|
Loading…
Reference in New Issue