Answer the question
In order to leave comments, you need to log in
How to use multiple regular expressions?
Using:
But I want to use multiple regular expressions for commands. vk.updates.hear(/^\/help$/i, async (message) => {
Answer the question
In order to leave comments, you need to log in
Modify Regular Expression
Or use multiple
vk.updates.hear([/^\/help$/i, /^\/commands?$/i], async (message) => {
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question