Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't found "(dotenv)" while running "node app.js" #3

Closed
quantoh7162 opened this issue Nov 16, 2022 · 6 comments
Closed

Couldn't found "(dotenv)" while running "node app.js" #3

quantoh7162 opened this issue Nov 16, 2022 · 6 comments

Comments

@quantoh7162
Copy link

Hi Fikiismyname,

I had tried to run the test on "app.js" with command line "node app.js", it shows couldn't find the ("dotenv") file, thanks for advises.

@fikiismyname
Copy link
Owner

Hi Fikiismyname,

I had tried to run the test on "app.js" with command line "node app.js", it shows couldn't find the ("dotenv") file, thanks for advises.

have you followed my readme? by renaming the .env.example file to .env and filling in your telegram token bot, then run npm start

@quantoh7162
Copy link
Author

quantoh7162 commented Nov 16, 2022 via email

@quantoh7162
Copy link
Author

Hi fikiismyname, i found that this article was helpful , it solved my problems which i had to delete the existing "package-lock.json" from your repo, and do "npm install" again to get a new "package-lock.json" file, after this, then i am able to run the "npm start" successfully.

@quantoh7162
Copy link
Author

@quantoh7162
Copy link
Author

finally i'm able to run the Telegram Bot, the command is working, but when i input both China version Tiktok (DouYin) and Native version of Tiktok URLs, both channels are not working, the bot command "/video tiktokURL" is not working, please revised or updates, thank you very much~ 👍 💯

@fikiismyname
Copy link
Owner

fikiismyname commented Nov 18, 2022

finally i'm able to run the Telegram Bot, the command is working, but when i input both China version Tiktok (DouYin) and Native version of Tiktok URLs, both channels are not working, the bot command "/video tiktokURL" is not working, please revised or updates, thank you very much~ 👍 💯

Hi, thanks for reminding me and I fixed this problem 3b9acb2, the reason was I forgot to set env prefix for music and video
try to fill in your .env file to be like this

BOT_TOKEN="Telegram BOT Token"
API_URL="https://api.douyin.wtf/api"

PREFIX_VIDEO=video
PREFIX_MUSIC=music

I hope your problem can be solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants