Get Discord Bot to read and update spreadsheet in JavaScript via Google Sheets API
问题 I have a Discord bot that I host on glitch.com whose aim is to store, read and update some basic stats for the users. Since this setup caused the variables to reset each time the project went to sleep, I successfully setup the Google Sheets API so that I could store the user's stats somewhere else permanently. However, I cannot for the love of God figure out how to actually make my JavaScript variables get their value from the spreadsheet. My initial code simply had a lot of variables that