Termux
Setting up Termux
-
Update dependencies by running the following command:
-
Install node.js
-
Install CLI
After doing those steps, weβre ready to get started!
Running CLI
To create our project easily and quickly, we will use the CLI. To do this, run the following command:
This will create a new project in the aoijs
directory and install all needed packages for us, wait for it to finish.
Editing Files
Once the project is created, you can edit the files in the aoijs
directory using your favorite text editor. You can use nano
, vim
, or vi
to edit the files.
This will open the built-in text editor, nano
, where you can edit the index.js
file.
Add your Discord Bot token and your prefix to the file, then save it by pressing Ctrl + O
, ENTER
and exit by pressing Ctrl + X
.
Do the same for your commands as you did with your index.js
file.