Answer the question
In order to leave comments, you need to log in
How to use regular expression?
I use
vk.updates.hear(/^(?:\/badge)\s([^]+):([^]+):([^]+)?/i, async (message) => {
return message.send(`Значение для значка ${message.$match[1]} для [id${message.$match[2]}|Пользователя] установлено на ${message.$match[3]}`);
});
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