Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i need a little help #43

Closed
BallisticOK opened this issue Feb 12, 2022 · 28 comments
Closed

i need a little help #43

BallisticOK opened this issue Feb 12, 2022 · 28 comments

Comments

@BallisticOK
Copy link

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

image

@BallisticOK
Copy link
Author

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

@BallisticOK
Copy link
Author

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
Copy link
Member

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

@BallisticOK
Copy link
Author

i'm using the latest

@breftejk
Copy link
Member

2.2.23?

@BallisticOK
Copy link
Author

yes

@BallisticOK
Copy link
Author

hello i fix it ;)

@BallisticOK
Copy link
Author

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
Copy link
Member

image

@breftejk
Copy link
Member

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

@BallisticOK
Copy link
Author

ya im just trying to figer this out xD

@breftejk
Copy link
Member

image

@breftejk
Copy link
Member

ignore altometra and capriham, just use dark

@BallisticOK
Copy link
Author

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

@BallisticOK
Copy link
Author

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
Copy link
Member

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

@BallisticOK
Copy link
Author

i do not know what you are talking about

@breftejk
Copy link
Member

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

@BallisticOK
Copy link
Author

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

@breftejk
Copy link
Member

breftejk commented Feb 12, 2022

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
Copy link
Author

i dont like bing called a spoonfeeder unlike others i try

@breftejk
Copy link
Member

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

@BallisticOK
Copy link
Author

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

@breftejk
Copy link
Member

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
Copy link
Author

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
Copy link
Member

breftejk commented Feb 12, 2022

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

@breftejk
Copy link
Member

breftejk commented Feb 12, 2022

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
Copy link
Author

OMG I GOT IT thx thats all i needed to know

souldof sead that from the start lol but again THX

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants