youtubechatbot
youtubechatbot copied to clipboard
Strategy with Cloud Functions?
Does the following approach make sense?
Setup cloud function at /process
- First invocation is manual (to start the bot)
- Cloud Function calls the List API, and does whatever based on messages
- Sends a request to
/process
afterpollingIntervalMillis
- Exits
- A new CloudFunction will be invoked (goto step 2)
?
This all assumes that pollingIntervalMillis
is less than the deadline for a single cloud function invocation, which I believe can be set to 9 minutes max