N
N
NoDeJs2292020-05-22 15:12:27
In contact with
NoDeJs229, 2020-05-22 15:12:27

How to make it so that if the user writes a nickname but does not indicate the desired nickname, then the bot will answer him in the next sentence, write the desired nickname.?

How to make it so that if the user writes a nickname but does not indicate the desired nickname, then the bot will answer him in the next sentence, write the desired nickname. The bot waits for a message and changes the player's nickname to the one that he wrote?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denioo, 2020-05-22
@Denioo

Catch the moment when the user needs to write a nickname, if the string with the nickname

if(nickname.length) {
//логика бота
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question