0
0
01mayer012019-01-10 17:39:26
JavaScript
01mayer01, 2019-01-10 17:39:26

How to make a bot in Discord respond when they write text with random values?

client.on('message', (message) => {
if (message.content == "<@bot ID> » You collect") { // this message should play the following
message.channel.send('m !collect') // writes a command to start collecting
}
});
for certain values, the bot should respond with m!collect
5c3759f123c6c760307093.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
grinat, 2019-01-11
@grinat

Math.random() is not suitable for what?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question