Compare commits
2 Commits
53dda834f9
...
b0eff87e72
Author | SHA1 | Date |
---|---|---|
Ceda EI | b0eff87e72 | |
Ceda EI | 9024ec65f9 |
|
@ -13,7 +13,7 @@ module.exports = (random, kys, default_text, bot_text, excluded_names) => (ctx)
|
||||||
const text_array = ctx.message.text.split(" ");
|
const text_array = ctx.message.text.split(" ");
|
||||||
if (text_array.length > 1) {
|
if (text_array.length > 1) {
|
||||||
|
|
||||||
const name = text_array[1];
|
const name = text_array.slice(1).reduce((i, j) => i + " " + j).trim();
|
||||||
if (excluded_names.includes(name)
|
if (excluded_names.includes(name)
|
||||||
|| excluded_names.includes("@" + name))
|
|| excluded_names.includes("@" + name))
|
||||||
return bot_text;
|
return bot_text;
|
||||||
|
|
Loading…
Reference in New Issue