I have a bot for VC. I need to do so that the bot could read the last letter of the word that the person will send. How can this be implemented?

  • correct your "* la" please) and could you tell me in what form the word comes to the server? - Evgeny Shalaev

1 answer 1

Apparently the bot you have on js. Therefore very simple

var lastLetter = message.slice(-1);

In the message should be a line with the message.