saiteja-madha / discord-js-bot

🤖 Multipurpose discord bot built using discord.js v14 with moderation, music, ticketing, translation, and much more
https://strangedocs.hostz.me
Apache License 2.0
665 stars 682 forks source link

Error: Cannot find module 'dotenv' Require stack: - /home/runner/discord-js-bot/index.js #346

Open malikgod666 opened 1 year ago

malikgod666 commented 1 year ago

Describe the bug Error: Cannot find module 'dotenv' Require stack:

To Reproduce Steps to reproduce the behavior:

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

If possible

Additional context Add any other context about the problem here.

chethanyadav456 commented 1 year ago

The 'dotenv' module is not installed. So type npm install dotenv in you cli.

chethanyadav456 commented 1 year ago

But it should be in your project directory.

malikgod666 commented 1 year ago

Error: Cannot find module '/home/runner/disc

ord-js-bot/index.js' Require stack:

at Function.Module._resolveFilename (nod

e: internal/modules/cjs/loader: 1021:15) at Function.resolve (node: internal/modul es/cjs/helpers:114:19)

this is showen in the console

malikgod666 commented 1 year ago

hello @chethanyadav456 replay plzz

malikgod666 commented 1 year ago

[2023-05-01 03:05:28] ERROR: Client Error: T he reply to this interaction has not been se nt or deferred.

this is when the commands using this is showing in the console

Discobotdevlolhehe commented 1 year ago

dont use replit. It will throw errors like that. If you have knowledge of JS you can edit the code so that it can be compatible with replit

vixshan commented 10 months ago

@malikgod666 your bot is out of date