Categories
How to send commands from console?
For example, I enter a certain command in the console and the bot should send it to the text channel
Answer the question
In order to leave comments, you need to log in
let Console = process.openStdin() Console.addListener("data", res => { let content = res.toString().trim().split(/ +/g) client.channels.cache.get("id_канала").send(content) })
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question