BearTS / Pterodactyl-Bot

A Fully Functional Discord bot For controling Pterodactyl Panel V1
Other
42 stars 8 forks source link

UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'login' of undefined #4

Closed kegri closed 2 years ago

kegri commented 3 years ago

I registered the bot succesfull but when I run other commands, it gives this error that I don't know

(node:15) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'login' of undefined at /home/container/commands/control/servers.js:64:24 (node:15) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:15) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

BearTS commented 3 years ago

strange, may i know what hosting are you trying to use?

kegri commented 3 years ago

I'm using it on my brand new pterodactyl panel

BearTS commented 2 years ago

Hey About your issue @kegri The repository was archived for a while and now since I unarchived it because of requests from multiple users, I will rewrite this after my final exams which are ending in January

BearTS commented 2 years ago

@kegri The repository is updated to support latest version of Pterodactyl Panel Edit: Therefore I am closing this issue