diff --git a/commands/Economy/birthdate.js b/commands/Economy/birthdate.js index c50cbee9..b28d1c84 100644 --- a/commands/Economy/birthdate.js +++ b/commands/Economy/birthdate.js @@ -30,7 +30,9 @@ class Birthdate extends Command { const tday = +match[0], tmonth = +match[1] - 1; let tyear = +match[2]; + if (tyear < 100) tyear += tyear < 50 ? 2000 : 1900; + const d = new Date(tyear, tmonth, tday); if (!(tday == d.getDate() && tmonth == d.getMonth() && tyear == d.getFullYear())) return message.error("economy/birthdate:INVALID_DATE"); if (d.getTime() > Date.now()) return message.error("economy/birthdate:DATE_TOO_HIGH"); diff --git a/languages/ru-RU/economy/deposit.json b/languages/ru-RU/economy/deposit.json index e37370e8..836a94e4 100644 --- a/languages/ru-RU/economy/deposit.json +++ b/languages/ru-RU/economy/deposit.json @@ -4,6 +4,6 @@ "EXAMPLES": "{{prefix}}deposit 1000", "MISSING_AMOUNT": "Укажите сумму!", "NO_CREDIT": "У вас нет кредитов!", - "NO_ENOUGH_CREDIT": "У вас нет `{{money}}`!", + "NOT_ENOUGH_CREDIT": "У вас нет `{{money}}`!", "SUCCESS": "{{money}} внесено на ваш банковский счёт!" } \ No newline at end of file