Professor-Redwood-Team / Professor-Redwood

Pokemon Go Discord Bot
MIT License
34 stars 21 forks source link

Remove static data #42

Closed flippinjoe closed 6 years ago

flippinjoe commented 7 years ago

To make this bot truly great there should be no static data. For instance

The guild info should just get pulled from the message.guild as needed. Everything else should be database driven which could also be changed if need be later on

mralanlee commented 7 years ago

@flippinjoe In order to achieve this we would at least have to place the Pokemon, Counters, Breakpoint, and CP data on a database or a public API for people to use.

The problem with that is we would have to not only refactor the current implementation but provide several implementations available for people to choose their preferred database (with the different variations of NoSQL or SQL).

Personally, I agree with you that offering this type of modularity and flexibility would be a great idea, and database queries would make updates and fetches much more efficient and consistent. On the Bay Area discord, we are implementing mongoDB on our end for stored mapping locations and queries.

flippinjoe commented 7 years ago

Not if you use Docker as the main publishing construct. Then you setup a simple Docker compose which you could have control over the full suite of micro services that would be used (including database).