coding-buddies-discord / cb-bots

4 stars 3 forks source link

refactor: change bot messages and fix structure #17

Closed waream2 closed 2 years ago

waream2 commented 2 years ago

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.

cubiquitous commented 2 years ago

i made some small fixes:

in the db.js:

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 :)