MMM-Assistant
MMM-Assistant copied to clipboard
Implement a request counter to keep track of free usage
I suggest we implement a request counter to keep track of the number of GA requests that has been made, so that the users do not exceed their free quota of ~240 requests/month
.
When the GA request is understood and processes, it returns a done:true
, that we could use.
[ASSTNT] GA Transcription: { transcription: 'Make me a sandwich', done: true }
This value need to be:
- saved upon module shutdown to the file
./assets/googleRC.dat
. - saved within module for conversation restarts, and remote MM connections.
gRQC = this.googleRequestCounter
- shown updated under microphone icon after each successful completion when config option:
showGRC: true
.