Bob Presley opened this issue 2 months ago
Not Assigned
Automatic Issues
Medium
Everyone
Open

Automatic bot doesn't work on Debian 7

/home/gmodserver/boty/kupowanie/automatic.sh:1

(function (exports, require, module, __filename, __dirname) { node automatic.js

^^^^^^^^^

SyntaxError: Unexpected identifier

at exports.runInThisContext (vm.js:53:16)

at Module._compile (module.js:373:25)

at Object.Module._extensions..js (module.js:416:10)

at Module.load (module.js:343:32)

at Function.Module._load (module.js:300:12)

at Function.Module.runMain (module.js:441:10)

at startup (node.js:139:18)

at node.js:974:3

Tags
Untagged
  • Avatar Bob Presley set the issue's visibility to Everyone 2 months ago
  • Avatar
    cares commented 2 months ago

    Try using your shell instead of automatic.sh.


    node automatic.js

  • Avatar
    Bob Presley commented 2 months ago

    Checked both of them

  • Avatar
    Bob Presley commented 2 months ago

    [email protected]:/home/gmodserver/boty/kupowanie# node automatic.js

    module.js:327

    throw err;

    ^


    Error: Cannot find module '/home/gmodserver/boty/kupowanie/automatic.js'

    at Function.Module._resolveFilename (module.js:325:15)

    at Function.Module._load (module.js:276:25)

    at Function.Module.runMain (module.js:441:10)

    at startup (node.js:139:18)

    at node.js:974:3

    [email protected]:/home/gmodserver/boty/kupowanie# node automatic.sh

    module.js:327

    throw err;

    ^


    Error: Cannot find module '/home/gmodserver/boty/kupowanie/automatic.sh'

    at Function.Module._resolveFilename (module.js:325:15)

    at Function.Module._load (module.js:276:25)

    at Function.Module.runMain (module.js:441:10)

    at startup (node.js:139:18)

    at node.js:974:3

  • Avatar
    cares commented 2 months ago

    [email protected]:/home/gmodserver/boty/kupowanie# node automatic.js


    this means you don't have an automatic.js in the directory you're in, meaning that's not where the bot is

  • Avatar
    Bob Presley commented 2 months ago

    Update

    [email protected]:/home/gmodserver/boty# node automatic.js

    /home/gmodserver/boty/app/version-check.js:3

    let parts = process.versions.node.split('.');

    ^^^


    SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

    at exports.runInThisContext (vm.js:53:16)

    at Module._compile (module.js:373:25)

    at Object.Module._extensions..js (module.js:416:10)

    at Module.load (module.js:343:32)

    at Function.Module._load (module.js:300:12)

    at Module.require (module.js:353:17)

    at require (internal/module.js:12:17)

    at Object.<anonymous> (/home/gmodserver/boty/automatic.js:1:63)

    at Module._compile (module.js:409:26)

    at Object.Module._extensions..js (module.js:416:10)

    [email protected]:/home/gmodserver/boty# node automatic.sh

    /home/gmodserver/boty/automatic.sh:1

    (function (exports, require, module, __filename, __dirname) { node automatic.js

    ^^^^^^^^^


    SyntaxError: Unexpected identifier

    at exports.runInThisContext (vm.js:53:16)

    at Module._compile (module.js:373:25)

    at Object.Module._extensions..js (module.js:416:10)

    at Module.load (module.js:343:32)

    at Function.Module._load (module.js:300:12)

    at Function.Module.runMain (module.js:441:10)

    at startup (node.js:139:18)

    at node.js:974:3


    https://gyazo.com/9c39ccbe33d9c93ebd12918787402822

  • Avatar
    cares commented 2 months ago

    You need to use node >v4

  • Avatar
    Bob Presley commented 2 months ago

    4.6.0 :v

  • Avatar
    Bob Presley commented 2 months ago

    So umm, I see there is no fix for that.

  • Avatar cares moved the issue to Automatic Issues 3 weeks ago
  • Avatar
    cares commented 3 weeks ago

    Have you managed to solve it?