Skip to content

Commit 658bd7e

Browse files
committed
Little tweaks
1 parent f3d3956 commit 658bd7e

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

Changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
RELEASE_17
22
- Bugfix: unknown locale "en_US" (it should be "en-US")
33
- Added Trivia Game Voice command (works only with OSKR bots)
4+
- Attempt a VectorX auto-update every day at 1 am
45

56
RELEASE_16
67
- Add Fakeyou.com custom voices to Vector

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module vectorx
33
go 1.19
44

55
require (
6-
github.com/fforchino/vector-go-sdk v0.0.0-20230428162644-e2f10e6f8cdb
6+
github.com/fforchino/vector-go-sdk v0.0.0-20230501190038-5c1be0b59b5a
77
github.com/fogleman/gg v1.3.0
88
)
99

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ github.com/evanphx/json-patch v4.12.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQL
116116
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
117117
github.com/fatih/structs v1.1.0 h1:Q7juDM0QtcnhCpeyLGQKyg4TOIghuNXrkL32pHAUMxo=
118118
github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M=
119-
github.com/fforchino/vector-go-sdk v0.0.0-20230428162644-e2f10e6f8cdb h1:LdEbmvArMjChhrqbDKu6Xi/LqNDSWxobk3NcqMh86gw=
120-
github.com/fforchino/vector-go-sdk v0.0.0-20230428162644-e2f10e6f8cdb/go.mod h1:VhuDr1h8ilsmbbjG1Wvp66kIzWfyGFwKA54oIhpwIKQ=
119+
github.com/fforchino/vector-go-sdk v0.0.0-20230501190038-5c1be0b59b5a h1:WT9ItNyKKcl5Yi8Y7rHdSctaUMkQjAHz443fom2e/4k=
120+
github.com/fforchino/vector-go-sdk v0.0.0-20230501190038-5c1be0b59b5a/go.mod h1:VhuDr1h8ilsmbbjG1Wvp66kIzWfyGFwKA54oIhpwIKQ=
121121
github.com/fogleman/gg v1.3.0 h1:/7zJX8F6AaYQc57WQCyN9cAIz+4bCJGO9B+dyW29am8=
122122
github.com/fogleman/gg v1.3.0/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k=
123123
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=

pkg/intents/voicecommand-trivia.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ func Trivia_Register(intentList *[]IntentDef) error {
6767
}
6868

6969
func triviaGameStarted() bool {
70-
err := json.Unmarshal([]byte(sdk_wrapper.GetCurrentGame()), &GameConfig)
70+
err := json.Unmarshal([]byte(sdk_wrapper.GetCurrentGameData()), &GameConfig)
7171
return (err == nil && GameConfig.GameName == TRIVIA_GAME_NAME && GameConfig.State == STATE_TRIVIA_GAME_STARTED)
7272
}
7373

7474
func saveConfig() bool {
7575
retVal := false
7676
b, err := json.Marshal(GameConfig)
7777
if err == nil {
78-
sdk_wrapper.SetCurrentGame(string(b))
78+
sdk_wrapper.SetCurrentGameData(string(b))
7979
retVal = true
8080
}
8181
return retVal
@@ -99,7 +99,7 @@ func setTriviaGameEnd() bool {
9999
GameConfig.CurrentQuestion = 1
100100
retVal = saveConfig()
101101
*/
102-
sdk_wrapper.SetCurrentGame("")
102+
sdk_wrapper.SetCurrentGameData("")
103103
}
104104
return retVal
105105
}

webroot/botcontrol.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,9 @@ <h3>Trivia game</h3>
477477
game, or go through all the 20 questions. If you start the game, Vector will be locked to the game until
478478
you quit. If Vector hears an invalid answer, he will prompt again the question. If he hears silence he
479479
won't prompt again but he will do that as an answer to the next voice command, whatever it is.
480-
Just say "Quit" to quit the game and return to normal operation.
480+
Just say "Quit" to quit the game and return to normal operation.<br/>
481+
NOTE: Alexa must be disabled to use this voice command, since it fakes Wake-Word detection by simulating
482+
a back button press.
481483
<br/><br/>
482484
<span id="bot-control-oskr-trivia-result"></span>
483485
<br/><br/>

0 commit comments

Comments
 (0)