Jump to content

Error when trying to run bot, missing dependency(?)

Not a Bug v3.1.0

SzaKaaL
SzaKaaL

Posted (edited)

As on image. Freshly bought.

 

/home/discord_bot1/src/connection/establishConnection.js:591
            }   else if(playerInfo?.lastUpdated + (config.PLAYER_PROFILER['Update player steam info every x hours (Will update a users steam data once a user joins the server after this threshold)'] * 3600) <= Date.now() / 1000) {
                                   ^

SyntaxError: Unexpected token '.'
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/discord_bot1/index.js:2:1)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

image.png

 

Edited by SzaKaaL
SzaKaaL

Posted

Found a solution - wrong node version. Now Im resolving other issues, I'll be back here if I succeed or fail

Amino

Posted

Sounds good, let me know!

SzaKaaL

Posted

Ok, I managed to set it up yesterday. You would need a full installation guide I guess 😄 I use a dedicated debian server, I had to update repositories to update node 😄 After that I had some problems setting it up on the discord application settings - but when figured these out (I was a bit stoned to be fair 😛 ) it seems to be working just fine 🙂

One thing for some reason I fought it has, but it has not is discord <-> steam linking 😞 And with that oxide permission groups <-> discord roles but I guess I'll find another bot for that 😛

Amino

Posted

Changed Status from Pending to Not a Bug

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.5m
Total downloads
Customers
11.1k
Customers served
Files Sold
159.2k
Marketplace sales
Payments
3.4m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.