My bot goes off

Hello good, I did a week ago a bot in glitch and every day it turns off but after a while it turned on but yesterday and today it turned off and it does not work and I have restarted everything and it still does not work.
Anyone know why?

and in the tools tab I get some errors that are these:

at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Object.Module._extensions…js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object. (/rbd/pnpm-volume/26cb757d-7b6a-4413-b406-3143fb50c4b3/node_modules/.registry.npmjs.org/discord.js/12.2.0/node_modules/discord.js/src/index.js:8:11)
a few seconds ago
/rbd/pnpm-volume/26cb757d-7b6a-4413-b406-3143fb50c4b3/node_modules/.registry.npmjs.org/discord.js/12.2.0/node_modules/discord.js/src/client/Client.js:41
} catch {
^
SyntaxError: Unexpected token {
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:617:28)
at Object.Module._extensions…js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object. (/rbd/pnpm-volume/26cb757d-7b6a-4413-b406-3143fb50c4b3/node_modules/.registry.npmjs.org/discord.js/12.2.0/node_modules/discord.js/src/index.js:8:11)

Have you tried enable-pnpm

do you have the latest version on NodeJS and discord.js?

Hello, the error I have managed to remove because it was that I had updated the discord.js and I was not leaving.

But the bot follows me without leaving connected in discord you know why it can be?

Thanks and best regards

without seeing the code i have no idea, did you client.login on your code?

Where do I see the client.login code?

the code in your script, do you ever run client.login(token) ?

Yes, I have run it but I do not know what happens that there are days like yesterday that if I left and days like today that do not go

can you share your project so i can take a look?

And how do I share my project?

Sorry, I’m a bit of a novice

Just click the share button and copy the link that allows editing.
Screenshot 2020-06-03 at 8.30.46 AM

ok i pass it to you is this:

[join link removed - to protect your project please share join links privately]

please send in messages

Try updating discord.js package in package.json from 12.2.0 to 11.5.1, that should fix your problem temporary, contact people who are masters in discord.js stuff to get help.

D.js only runs on node 12.x, please upgrade.

I have it updated to the latest version and what happens when I turn off my computer the bot turns off and I don’t know why

Because it can be?

If its running on glitch and it turns off when you stop editing it, then you should probably use some keep online software.

https://awake.glitch.me or https://statify.glitch.me both work.

I was using the robot uptime monitor, but that’s what I was saying that then when I turn off the computer it stops working

here you go, replace } catch {
with this:

} catch(e){

and where is that?
Because i can’t find it