thunder-red-star / discord.js-userbot

DJS 12.5.3 but with access to login as a user.
Apache License 2.0
4 stars 1 forks source link

Unexpected token. #1

Closed g0dzcsgo closed 3 years ago

g0dzcsgo commented 3 years ago

I am getting an error whenever i try to start my bot using node index.js

The error i am getting is:

/home/bot/node_modules/discord.js/src/client/Client.js:42 } catch { ^

SyntaxError: Unexpected token { at createScript (vm.js:80:10) at Object.runInThisContext (vm.js:139:10) at Module._compile (module.js:616:28) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Object. (/home/bot/node_modules/discord.js/src/index.js:8:11)

Anyone know how to solve this? Much appreciated.