Answer the question
In order to leave comments, you need to log in
How to find a certain word among the team?
I want to add one feature to the bot. Let's say a certain word is "hedgehog", I need to get this word from the message. For example: "I'm a hedgehog."
After that, you need to send a message, well, I'll figure it out)
Answer the question
In order to leave comments, you need to log in
// msg - текст сообщения, получите ее из нужного объекта/места
if(msg.includes("ёж")) {
// Do smth if message includes "ёж"
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question