Releases: djotaku/Civilization_VI_Play_By_Cloud_Webhook_with_FastAPI
v1.3.1 Added collection names to User and Games Databases
v1.3 Moved to MongoDB
There are two noticeable changes
MongoDB is now the datastore
I moved from writing JSON to disk to using MongoDB. I haven't had any pull requests or indicators that anyone is using this code but me, but if there are those of you out there who are, here's what you'll want to do:
- Setup MongoDB somewhere. The people who make MongoDB have a free tier of Atlas (their cloud server) that should be fine unless you're serving some massive community.
- Go to mongo_setup.py and change the part after the "@" sign to your connection string.
- Authorize your IP address to be able to access the database. (Atlas makes you do that, don't know about other installs of Mongo)
- First run convert_player_json_mongo_db.py to put your players into MongoDB. Since I haven't implemented anything other than Matrix, I just have it worry about Matrix usernames.
- Then run convert_game_json_mongo_db.py to put your games into MongoDB.
At this point you should be ready to rock and roll and from your user's perspectives nothing should be different than it was before (with one caveat).
Caveat: I have lost the sorting for the index page. I have an idea of maybe how I can get that back based on a MongoDB query. But that seems to be the only issue I've discovered so far.
A few new endpoints
I added the completed_games and total_games endpoints and current_games now returns only the games that are in progress.
What's Changed
Full Changelog: v1.1.8...v1.3
v1.1.8 Final Release before MongoDB requirement
After this release I'm moving to using MongoDB instead of JSON files written to disk. If you aren't interested in using Mongo, fork from here.
v1.1.7 Average Turn Time now Displayed
whoops, accidental circulate dependencies
v1.1.5 Fixed Bug on Ordering the Index.html
Forgot a 0
v1.1.4 Table on Index.html is now ordered from oldest to newest
Helps to see who's holding things up!
v1.1.1 Fixing Matrix Bug on Game Completion
Had a bug with the Matrix response when completing a game. Fixed it.
v1.1 Added A User-Facing Index.html
Now if you've setup this server for capturing your webhooks, a page will come up listing all the games the server is currently tracking.
Also made a bunch of behind-the-scenes updates to make the code more modular and to make the responses all JSON for more consistency.
v0.2.3 Fixing my HTTP Verb in the bot
Wrong HTTP verb Tried to call post on a delete. The bot should work now.
v0.2.2 Updating Dependencies
Updating dependencies