Maselkov / Maselkov-Cogs

Collection of cogs for Red-Discordbot
MIT License
2 stars 3 forks source link

[GW2] MongoDB implementation #37

Closed Maselkov closed 7 years ago

Maselkov commented 7 years ago

I've pushed initial implementation of MongoDB. Currently only supports key storage, and is fully functional, although I didn't have time to test it for more time.

The database will be useful for caching and allow various operations using for example achievement or item names, and limit the number of requests made to the api.

Requires MongoDB at least 3.4 and latest PyMongo - pip install pymongo Will need to create a task that runs time from time, resolving item IDs into documents. Same for achievements. Gamedata should be moved to the database as well

Maselkov commented 7 years ago

Currently support for language was dropped, as it's not priority. Feature parity with master was reached, so now I can work on creating item database

Maselkov commented 7 years ago

Feature parity has been reached and more.