Answer the question
In order to leave comments, you need to log in
Variable undefined?
Good evening! When I run the code, I get the error "Handle polling update error: TypeError: Cannot read property 'nektarcv' of undefined" (photo below).
The code itself:
///переменные прикреплены ниже
cmd.ricco(/^(?:цветок|мой цветок|цветы|цветочек)$/i, async (message, bot) => {
return bot(`информация о вашем цветке:
Название: Тюльпан
Нектара: ${utils.sp(message.user.cvetok.nektarcv)} - (${utils.sp(message.user.cvetok.nektarcv)} в час)
Цена за улучшение цветка: ${utils.sp(message.user.cvetok.cenacv)}$`)
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question