From 3ed015b5841b7febe1dfc8af24c415e906274240 Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Sun, 19 Apr 2020 18:17:12 +0530 Subject: [PATCH] Fix typo firstName -> first_name --- commands/insult.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/insult.js b/commands/insult.js index 707efe7..6111643 100644 --- a/commands/insult.js +++ b/commands/insult.js @@ -3,7 +3,7 @@ module.exports = (random, kys, default_text, bot_text, excluded_names) => (ctx) if (ctx.message.reply_to_message) { const { from } = ctx.message.reply_to_message; - const name = from.username ? "@" + from.username : from.firstName; + const name = from.username ? "@" + from.username : from.first_name; if (name == excluded_names[0]) return bot_text; return random(kys)().replace(/##name##/g, name);