daggeron / Mogster

Proof of concept Weakaura like system for Final Fantasy 14
MIT License
1 stars 0 forks source link

Discordbot broken in 0.12-A #20

Open psybie opened 5 years ago

psybie commented 5 years ago

The "Use Discord" option does not connect to the discord bot. I found out that my token changed at some point. I did not regenerate it. I updated the new token into the config.json file. The error continues.

I tried my previous copy of 0.9-A when Discord was working. That failed with the same error. I updated the token and the error remains. I regenerated the token and updated the config file. The error remains. I tried re-authorizing the bot through the OAuth2 redirect link. Nothing happened. My Adjutant discord bot remains offline.

The error is this:

(node:3296) UnhandledPromiseRejectionWarning: Error [TOKEN_INVALID]: An invalid
token was provided.
    at WebSocketManager.connect (D:\Video Games\Final Fantasy XIV\Mogster\mogste
r0.12-A\mogster\resources\app.asar\node_modules\discord.js\src\client\websocket\
WebSocketManager.js:132:26)
    at Client.login (D:\Video Games\Final Fantasy XIV\Mogster\mogster0.12-A\mogs
ter\resources\app.asar\node_modules\discord.js\src\client\Client.js:210:21)
(node:3296) 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(). (rejection
 id: 1)
(node:3296) [DEP0018] DeprecationWarning: Unhandled promise rejections are depre
cated. In the future, promise rejections that are not handled will terminate the
 Node.js process with a non-zero exit code.