alexemanuelol / rustplusplus

A NodeJS Discord Bot that uses the rustplus.js library to utilize the power of the Rust+ Companion App with additional Quality-of-Life features.
GNU General Public License v3.0
186 stars 94 forks source link

Bot crashing #39

Closed YayoAstur closed 2 years ago

YayoAstur commented 2 years ago

Hi! My bot is crashing once I pair the bot with the server.

This is all I got on the console:

2022-5-13 21:45:53 INFO: LOGGED IN AS: rustPlusPlus#5381
2022-5-13 21:45:54 143428962834448386 Intoxicated EU Sandbox - Creative | Build | Noclip CONNECTING: RUSTPLUS CONNECTING...
2022-5-13 21:45:54 824117831901642766 Intoxicated EU Sandbox - Creative | Build | Noclip CONNECTING: RUSTPLUS CONNECTING...
2022-5-13 21:45:54 143428962834448386 Intoxicated EU Sandbox - Creative | Build | Noclip CONNECTED: RUSTPLUS CONNECTED
2022-5-13 21:45:54 824117831901642766 Intoxicated EU Sandbox - Creative | Build | Noclip CONNECTED: RUSTPLUS CONNECTED
2022-5-13 21:45:54 INFO: Successfully registered application commands for guild: 824117831901642766.
2022-5-13 21:45:55 INFO: FCM-listener will start in 5 seconds for guild: 824117831901642766
2022-5-13 21:46:03 FCM: 824117831901642766 pairing: server
2022-5-13 21:46:07 ERROR: Invalid guild or channel.
2022-5-13 21:46:07 143428962834448386 Intoxicated EU Sandbox - Creative | Build | Noclip CONNECTED: SUCCESSFULLY CONNECTED!
2022-5-13 21:46:07 ERROR: sendServerMessage: Invalid guild or channel.
2022-5-13 21:46:10 143428962834448386 Intoxicated EU Sandbox - Creative | Build | Noclip EVENT: Cargo Ship located at Q0.
2022-5-13 21:46:10 143428962834448386 Intoxicated EU Sandbox - Creative | Build | Noclip EVENT: Cargo Ship located at AK36.
2022-5-13 21:46:10 ERROR: Invalid guild or channel.
2022-5-13 21:46:10 ERROR: Invalid guild or channel.
2022-5-13 21:46:10 ERROR: Invalid guild or channel.
2022-5-13 21:46:10 ERROR: Invalid guild or channel.
2022-5-13 21:46:11 ERROR: Message send failed: DiscordAPIError: Request entity too large
/home/rust/rustPlusPlus/src/rustplusEvents/connected.js:77
                instance.informationMessageId.map = msg.id;
                                                        ^

TypeError: Cannot read properties of undefined (reading 'id')
    at Object.execute (/home/rust/rustPlusPlus/src/rustplusEvents/connected.js:77:57)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v18.1.0

Currently using Ubuntu 20.04.4 LTS

alexemanuelol commented 2 years ago

Solved in db91fa26446012dc849ac305f407344378dc37e3