Compare commits

..

2 Commits

Author SHA1 Message Date
Ceda EI b0eff87e72 Fix untested code with more untested code 2020-11-20 21:56:16 +05:30
Ceda EI 9024ec65f9 Use all args of /insult and /kys as name 2020-11-20 21:44:14 +05:30
1 changed files with 1 additions and 1 deletions

View File

@ -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[1];
const name = text_array.slice(1).reduce((i, j) => i + " " + j).trim();
if (excluded_names.includes(name)
|| excluded_names.includes("@" + name))
return bot_text;