Hey, does anyone know how to add this bot to herokuapp?
Some tests:
Quote:
C:\BOT\server.js:43
targetChannels.forEach(channel => bot.channels.get(channel).send(message));
^
TypeError: Cannot read property 'send' of undefined
at C:\BOT\server.js:43:64
at Array.forEach (<anonymous>)
at Socket.<anonymous> (C:\BOT\server.js:43:20)
at Socket.emit (events.js15:20)
at addChunk (_stream_readable.js:295:12)
at readableAddChunk (_stream_readable.js:271:9)
at Socket.Readable.push (_stream_readable.js:212:10)
at TCP.onStreamRead (internal/stream_base_commons.js:186:23)
C:\BOT>goto start
|
The bot starts well but after a moment it shows that, any suggestions?