Discord bot start up problem

hey guys, so Ive changed hosts from heroku to glitch for my discord bot, and Ive setup everything.
it was working fine but then I deleted a file and replaced again. but my bot wont start up again. when I try
“node bot.js” it gives me this error

app@foolish:~ 11:04
$ node bot.js
events.js:167
throw er; // Unhandled ‘error’ event
^

Error: listen EADDRINUSE: address already in use :::3000
at Server.setupListenHandle [as _listen2] (net.js:1290:14)
at listenInCluster (net.js:1338:12)
at Server.listen (net.js:1425:7)
at Function.listen (/rbd/pnpm-volume/b6b6dc45-1b77-441d-98c2-5618b2293c21/node_modules/.registry.npmjs.org/express/4.16.4/node_modules/express/lib/application.js:618:24)
at Object. (/app/bot.js:22:5)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
Emitted ‘error’ event at:
at emitErrorNT (net.js:1317:8)
at process._tickCallback (internal/process/next_tick.js:63:19)
at Function.Module.runMain (internal/modules/cjs/loader.js:745:11)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)

any help would be good. thanks

Add this listener into bot.js for more detailed error:

Client.on("error", (error) => console.error(error));

Hey @BroskiFoolishBot, welcome to the Glitch Forums!

That error message tells me that you’ve probably got two things trying to listen to the open local port. One one listener can listen to a specific port, so when the second one tries to listen you’ll see an error like this.

If you can provide your project name we can give more specific guidance.

project name is “foolish” thanks

It looks like you’ve resolved this issue; great! Let us know if you need further help!