mirror of
https://gitlab.com/ceda_ei/Quadnite-Bot
synced 2025-04-02 19:06:51 +02:00
Fix typo firstName -> first_name
This commit is contained in:
parent
2914321b3c
commit
3ed015b584
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user