Closed waream2 closed 2 years ago
i made some small fixes:
in the db.js:
checkDB
function is created and invoked.const db = new LowSync(new JSONFileSync("db.json"));
is created.const { points } = db.data;
everywhere that is need to avoid breakages with points
being Unknown
.in givePoint.js:
in reportChannelPoints.js:
in getUserIdFromMention.js:
beyond that I have no issues with your changes, and the messages are actually more fun now :)
I just went in and changed the file structure for cleaner imports. Using index as the the entry and exit point of all the modules in each directory. That way we can just import all of the modules needed from one place, as opposed to several imports.
Also the function that was checking if a channel had any points for
!points
wasnt working for me to i reworked it, please take a look and let me know if i missed something.Last, I just updated the Bot's voice to be more playful.