R
R
rodgi2020-02-18 20:18:58
JavaScript
rodgi, 2020-02-18 20:18:58

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

1 answer(s)
S
Shohruh Shaimardonov, 2020-02-18
@rodgi

// msg - текст сообщения, получите ее из нужного объекта/места
if(msg.includes("ёж")) {
  // Do smth if message includes "ёж"
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question