A
A
anubis4652021-03-07 10:39:53
JavaScript
anubis465, 2021-03-07 10:39:53

Is it possible to update your code through a command?

Is there any way to update the index.js file through a command? I would like the bot to add the given lines to my code through the command.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex K, 2021-03-07
@anubis465

Writing to index.js is no different from writing to any other text file. Read the documentation for the `fs` module in node.js. For example, https://nodejs.org/api/fs.html#fs_fs_writefile_fil...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question