Discord-Dashboard / Core

NPM module creating a Dashboard for your bot in 10 minutes without APIs knowledge and slapping code from scratch!
https://dbd-docs.assistantscenter.com
Other
256 stars 40 forks source link

i need a little help #43

Closed BallisticOK closed 2 years ago

BallisticOK commented 2 years ago

im getting this error when ever i try to use the Dashboard my bot dont even start

image

BallisticOK commented 2 years ago

and dont wary about the IP thats invalid its just what shows on the panel

BallisticOK commented 2 years ago

just in case

/home/container/node_modules/node-fetch/lib/index.js:1491 reject(new FetchError(request to ${request.url} failed, reason: ${err.message}, 'system', err)); ^ FetchError: request to https://dbd-external-stats.assistants.ga/registerProject failed, reason: getaddrinfo EAI_AGAIN dbd-external-stats.assistants.ga at ClientRequest. (/home/container/node_modules/node-fetch/lib/index.js:1491:11) at ClientRequest.emit (node:events:394:28) at TLSSocket.socketErrorListener (node:_http_client:447:9) at TLSSocket.emit (node:events:394:28) at emitErrorNT (node:internal/streams/destroy:157:8) at emitErrorCloseNT (node:internal/streams/destroy:122:3) at processTicksAndRejections (node:internal/process/task_queues:83:21) { type: 'system', errno: 'EAI_AGAIN', code: 'EAI_AGAIN' }

there is the error

breftejk commented 2 years ago

Please make sure ur using the latest version after domain change.

BallisticOK commented 2 years ago

i'm using the latest

breftejk commented 2 years ago

2.2.23?

BallisticOK commented 2 years ago

yes

BallisticOK commented 2 years ago

hello i fix it ;)

BallisticOK commented 2 years ago

im getting a new problem now

/home/container/bot.js:234 const Dashboard = new DBD.Dashboard({ ^

TypeError: DBD.Dashboard is not a constructor at Object. (/home/container/bot.js:234:20) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12) at node:internal/main/run_main_module:17:47

breftejk commented 2 years ago

image

breftejk commented 2 years ago

(Don't do step 1, you are already on v2)

BallisticOK commented 2 years ago

ya im just trying to figer this out xD

breftejk commented 2 years ago

image

breftejk commented 2 years ago

ignore altometra and capriham, just use dark

BallisticOK commented 2 years ago

yours is done lot dif then mine i did not code all of my bot so i dont realy know what im doing

BallisticOK commented 2 years ago

getting /home/container/bot.js:239 const Dashboard = new DBD.Dashboard({ ^

TypeError: DBD.Dashboard is not a constructor at Object. (/home/container/bot.js:239:19) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12) at node:internal/main/run_main_module:17:47

again

breftejk commented 2 years ago

That's bcse ur not awaiting useLicense and doing DBD.Dashboard = DBD.UpdatedClass() before creating Dashboard

BallisticOK commented 2 years ago

i do not know what you are talking about

breftejk commented 2 years ago

"i did not code all of my bot" Which OpenSource project are you using?

BallisticOK commented 2 years ago

one of my frends game me there bot code and he helped me set it started im just like realy new to javascript

breftejk commented 2 years ago

Ask they to help you, you really don't understand what I'm saying, like you said - 'you're like really new to javascript'. They will understand what I'm saying and help (aKa sponfeed tho) you.

BallisticOK commented 2 years ago

i dont like bing called a spoonfeeder unlike others i try

breftejk commented 2 years ago

I see and that's true, but only spoonfeed will help you at this point, sadly.

BallisticOK commented 2 years ago

im learning slowly just some thinks just go over my head atm but thx for trying

breftejk commented 2 years ago

All you really need to do is make sure Dashboard is inited in this way: image When you'll figure this out, it will be fixed.

BallisticOK commented 2 years ago

like atm i fixed that problem but now im getting SyntaxError: await is only valid in async functions and the top level bodies of modules

and idk how to make a async functions

breftejk commented 2 years ago

Ignoring Altometra, Capriham and DarkDashboard will be const DarkDashboard = require('dbd-dark-dashboard'); for you.

breftejk commented 2 years ago

like atm i fixed that problem but now im getting SyntaxError: await is only valid in async functions and the top level bodies of modules

and idk how to make a async functions

you need to move your code to an async function - async () tho:

(async()=>{
// YOUR CODE
})();
BallisticOK commented 2 years ago

OMG I GOT IT thx thats all i needed to know

souldof sead that from the start lol but again THX