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

Try to host the bot on heroku and keep an getting an error #20

Open
Powerful845tiger opened this issue Oct 27, 2021 · 0 comments
Open

Comments

@Powerful845tiger
Copy link

2021-10-27T13:46:27.223018+00:00 heroku[worker.1]: Starting process with command npm run start
2021-10-27T13:46:27.866681+00:00 heroku[worker.1]: State changed from starting to up
2021-10-27T13:46:28.792432+00:00 app[worker.1]:
2021-10-27T13:46:28.792455+00:00 app[worker.1]: > [email protected] start /app
2021-10-27T13:46:28.792461+00:00 app[worker.1]: > pm2-runtime start ecosystem.config.js --env production
2021-10-27T13:46:28.792462+00:00 app[worker.1]:
2021-10-27T13:46:29.158058+00:00 app[worker.1]: 2021-10-27T13:46:29: PM2 log: Launching in no daemon mode
2021-10-27T13:46:29.248501+00:00 app[worker.1]: 2021-10-27T13:46:29: PM2 log: [Watch] Start watching index
2021-10-27T13:46:29.249059+00:00 app[worker.1]: 2021-10-27T13:46:29: PM2 log: App [index:0] starting in -fork mode-
2021-10-27T13:46:29.259190+00:00 app[worker.1]: 2021-10-27T13:46:29: PM2 log: App [index:0] online
2021-10-27T13:46:30.882130+00:00 app[worker.1]: Reaction Roles : Fetching messages
2021-10-27T13:46:30.882401+00:00 app[worker.1]: MemesAPI ready
2021-10-27T13:46:30.882420+00:00 app[worker.1]: Bot Connected to :
2021-10-27T13:46:30.882436+00:00 app[worker.1]: Logged in as AIO BOT!
2021-10-27T13:46:30.882459+00:00 app[worker.1]: Discord.js API Ready! ⚡
2021-10-27T13:46:30.883564+00:00 app[worker.1]: TypeError: Cannot read property 'messages' of undefined
2021-10-27T13:46:30.883642+00:00 app[worker.1]: at /app/src/events/reaction_roles/load.js:27:11
2021-10-27T13:46:30.883659+00:00 app[worker.1]: at Client. (/app/src/events/reaction_roles/load.js:47:7)
2021-10-27T13:46:30.883673+00:00 app[worker.1]: at Client.emit (events.js:327:22)
2021-10-27T13:46:30.883688+00:00 app[worker.1]: at WebSocketManager.triggerClientReady (/app/node_modules/discord.js/src/client/websocket/WebSocketManager.js:431:17)
2021-10-27T13:46:30.883701+00:00 app[worker.1]: at WebSocketManager.checkShardsReady (/app/node_modules/discord.js/src/client/websocket/WebSocketManager.js:415:10)
2021-10-27T13:46:30.883714+00:00 app[worker.1]: at WebSocketShard. (/app/node_modules/discord.js/src/client/websocket/WebSocketManager.js:197:14)
2021-10-27T13:46:30.883724+00:00 app[worker.1]: at WebSocketShard.emit (events.js:315:20)
2021-10-27T13:46:30.883745+00:00 app[worker.1]: at WebSocketShard.checkReady (/app/node_modules/discord.js/src/client/websocket/WebSocketShard.js:475:12)
2021-10-27T13:46:30.883757+00:00 app[worker.1]: at Object.module.exports [as READY] (/app/node_modules/discord.js/src/client/websocket/handlers/READY.js:20:9)
2021-10-27T13:46:30.883768+00:00 app[worker.1]: at WebSocketManager.handlePacket (/app/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
2021-10-27T13:46:30.883780+00:00 app[worker.1]: at WebSocketShard.onPacket (/app/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
2021-10-27T13:46:30.883793+00:00 app[worker.1]: at WebSocketShard.onMessage (/app/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
2021-10-27T13:46:30.883805+00:00 app[worker.1]: at WebSocket.onMessage (/app/node_modules/ws/lib/event-target.js:132:16)
2021-10-27T13:46:30.883818+00:00 app[worker.1]: at WebSocket.emit (events.js:315:20)
2021-10-27T13:46:30.883831+00:00 app[worker.1]: at Receiver.receiverOnMessage (/app/node_modules/ws/lib/websocket.js:833:20)
2021-10-27T13:46:30.883842+00:00 app[worker.1]: at Receiver.emit (events.js:315:20)
2021-10-27T13:46:30.883853+00:00 app[worker.1]: at Receiver.dataMessage (/app/node_modules/ws/lib/receiver.js:517:14)
2021-10-27T13:46:30.883865+00:00 app[worker.1]: at Receiver.getData (/app/node_modules/ws/lib/receiver.js:435:17)
2021-10-27T13:46:30.883876+00:00 app[worker.1]: at Receiver.startLoop (/app/node_modules/ws/lib/receiver.js:143:22)
2021-10-27T13:46:30.883887+00:00 app[worker.1]: at Receiver._write (/app/node_modules/ws/lib/receiver.js:78:10)
2021-10-27T13:46:30.883899+00:00 app[worker.1]: at doWrite (_stream_writable.js:403:12)
2021-10-27T13:46:30.883911+00:00 app[worker.1]: at writeOrBuffer (_stream_writable.js:387:5)

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

1 participant