camelwater / Tauto

General-purpose Discord Bot for managing tournaments of different formats: single-elimination, double-elimination, Round-Robin, Swiss, Champions League.
MIT License
2 stars 0 forks source link

Async Google Sheets? #3

Open camelwater opened 2 years ago

camelwater commented 2 years ago

need to use asynchronous gspread implementation

no longer will api calls block incoming commands and messages

the calls should be made after the message back to the user and the non-api call stuff has been finished so no delay from command to bot message

camelwater commented 2 years ago

unfortunately, asyncio_gspread isn't very good because it is missing some key functions (format, update_title, etc.), and seems to be slower than gspread (obviously this wouldn't be an issue if I use it right, but with these two main issues, I see no real upside to switch to asyncio_gspread).

will continue to use blocking calls, which sucks. hopefully, the library is updated or I find another asynchronous implementation of gspread.