R
R
rama_jecboom2021-02-21 17:10:07
Node.js
rama_jecboom, 2021-02-21 17:10:07

The bot does not start, how to start?

Good afternoon, help me solve the problem, I have a bot that I created through the program.
On the PC, when I start the discord bot via cmd, everything works, it starts without errors.

When I put the bot on vps (installed all libraries, etc.), nothing works.
Gives the following error:

/root/tupajenek/bot.js:1237
                } 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 Function.Module.runMain (module.js:693:10)
    at startup (bootstrap_node.js:188:16)
    at bootstrap_node.js:609:3
[email protected]:~/tupajenek#


Although on the PC it runs smoothly without errors.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2021-02-21
@Alexandre888

- } catch {}
+ } catch (err) {}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question