Answer the question
In order to leave comments, you need to log in
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
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question