Hermitter / BDO-Boss-Alerts

A Discord bot that sends notification messages when a boss in Black Desert Online spawns.
9 stars 16 forks source link

Another Unhandled promise rejection #5

Closed Jokurilism closed 6 years ago

Jokurilism commented 6 years ago

(node:1784) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejec tion id: 1): Error: Incorrect login details were provided.

Any suggest for this error? i'm using bot_id either from right-click -> copy id and copy paste the Token bot none of them were worked

Hermitter commented 6 years ago

The only time I see this error is when the login details are wrong. Did you add the right Bot Token to config.json?

Jokurilism commented 6 years ago

strange but it works, i've reset the token and try again with the new token and the error has changed like this:

Logged Into Server E:\nodejs\BDO-Boss-Alerts-master\app.js:18 channel.send("Looking Out For BDO Boss Spawns..."); ^

TypeError: Cannot read property 'send' of undefined at Client.bot.on (E:\nodejs\BDO-Boss-Alerts-master\app.js:18:11) at emitNone (events.js:111:20) at Client.emit (events.js:208:7) at WebSocketConnection.triggerReady (E:\nodejs\BDO-Boss-Alerts-master\node_m odules\discord.js\src\client\websocket\WebSocketConnection.js:123:17) at WebSocketConnection.checkIfReady (E:\nodejs\BDO-Boss-Alerts-master\node_m odules\discord.js\src\client\websocket\WebSocketConnection.js:139:61) at GuildCreateHandler.handle (E:\nodejs\BDO-Boss-Alerts-master\node_modules\ discord.js\src\client\websocket\packets\handlers\GuildCreate.js:13:31) at WebSocketPacketManager.handle (E:\nodejs\BDO-Boss-Alerts-master\node_modu les\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:103:65) at WebSocketConnection.onPacket (E:\nodejs\BDO-Boss-Alerts-master\node_modul es\discord.js\src\client\websocket\WebSocketConnection.js:330:35) at WebSocketConnection.onMessage (E:\nodejs\BDO-Boss-Alerts-master\node_modu les\discord.js\src\client\websocket\WebSocketConnection.js:293:17) at WebSocket.onMessage (E:\nodejs\BDO-Boss-Alerts-master\node_modules\ws\lib \event-target.js:120:16)

is this something related to bot permission in channel-chat?

Hermitter commented 6 years ago

Seems like it. Try making a fresh Discord server and test the bot there.

Hermitter commented 6 years ago

Due to no activity, I will be closing the issue.