D
D
Deso Crew2020-09-30 19:48:32
Node.js
Deso Crew, 2020-09-30 19:48:32

How to make the bot respond to your message?

For example, a bot during the execution of a command sends a message (or sent it) and immediately responds to it. I already saw it in python, you need a javascript.
For example, my lines of code for the command:

client.on('message', message => {
  if (message.content === `${prefix}команда`) {
    message.channel.send(команда)
  }
})

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-09-30
@desocrew

message.channel.send("сообщение").then(message => message.react("реакция"))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question