bug report
I want to run the bot when example.js error like below
~ $ cd /storage/emulated/0
.../emulated/0 $ cd download
.../0/download $ cd mybot
.../download/mybot $ cd Boombox-Generator-main
.../mybot/Boombox-Generator-main $ node example.js
node:internal/module

33 Replies
Explain what are you trying to run and what is the problem. The picture is optionnal
when I run JS, it just gives an error
@NoNameForIdea
What JS program. JS can't be run alone.
This is the script file that I want to run, but when I run node example.js, it gives an error.
@NoNameForIdea
Why a zip? You don't have the project page URL?
I need to know what is it
That script was given to me by someone, I asked who has a Discord bot script that can create top4top mp3 links
So nothing to do with Termux
try running it, does it give an error or not?
You should ask to the creator of this script, Termux doesn't have to support problems of others' programs
have you tried
npm install
?what needs to be installed
Looks like you need "axios"
You should try
npm install
or npm install axios
This

Im trying to create a solution
Okay
Wait
No
Im dumb
Use
npm start
wait
just the same

Try this one then
Unzip it then use
npm install
and npm start
Dont forget to put thr bot token in example.js@threatening boykisser

Thanks a lot
@threatening boykisser So that the bot doesn't die, how do you exit Termux?
Use ctrl C
If I exit from Termux but the script doesn't disappear, how do I do it?
Just use ctr+c it should stop the script
Wait
Im not the best talking english
Did you mean keep the bot online?
yes
Use this
termux-wake-lock && nohup npm start &
The bot will start and you can still use the terminalif you make it off
Sorry for bothering you, I'm just learning this.
👍
@threatening boykisser how do you add this
Lemme check
Im at school rn, ima check it later
sorry, I don't have time to do this now
Okay