coding-buddies-discord / cb-bots

4 stars 3 forks source link

Earn/db multi server support #21

Closed waream2 closed 2 years ago

waream2 commented 2 years ago

this change allows for support of both the development and the live server.

Had to update the checkDB function to add a a prop for each of the servers (dev and prod) and then pass in the guildId to each of the db functions to pull the points object from the correct server, based on which server the message was in. they all look at this now const { points } = db.data[guildId]

This should solve our issue.