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
212 stars 100 forks source link

Custom map = Not Working bot - Craash #41

Closed C74K closed 2 years ago

C74K commented 2 years ago

Bot dont work on custom maps

"/root/rustPlusPlus/src/util/map.js:49 rustplus.map.monumentInfo[monument.token].radius) { ^

TypeError: Cannot read properties of undefined (reading 'radius') at Object.getPos (/root/rustPlusPlus/src/util/map.js:49:63) at Player.updatePos (/root/rustPlusPlus/src/structures/Player.js:85:28) at new Player (/root/rustPlusPlus/src/structures/Player.js:21:14) at Team.addPlayer (/root/rustPlusPlus/src/structures/Team.js:86:31) at Team.updateTeam (/root/rustPlusPlus/src/structures/Team.js:58:22) at new Team (/root/rustPlusPlus/src/structures/Team.js:14:14) at Object.pollingHandler (/root/rustPlusPlus/src/handlers/pollingHandler.js:28:29) at processTicksAndRejections (node:internal/process/task_queues:96:5)

Node.js v17.3.1 "

any fix ?

C74K commented 2 years ago

any fix ?

goldbeg commented 2 years ago

Hey @C74K, Reinstall the Bot it seemed to work for me. Clear all the Packages installed and reinstalled.

C74K commented 2 years ago

bot working i removed .radius from code and map works