summaryrefslogtreecommitdiff
path: root/bot.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-05-19 10:42:10 +0300
committerGrail Finder <wohilas@gmail.com>2025-05-19 10:42:10 +0300
commit94df5b830c84d1fb570c85ec072d917ea4497d8c (patch)
tree4ac09beade74f6500641ab067ea9fa82aaa03623 /bot.go
parenta7e7da6f9965624e4667ecedd23f2eb073ac2f56 (diff)
Chore: linter
Diffstat (limited to 'bot.go')
-rw-r--r--bot.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/bot.go b/bot.go
index 6b733b2..f3ceb69 100644
--- a/bot.go
+++ b/bot.go
@@ -43,9 +43,10 @@ var (
interruptResp = false
ragger *rag.RAG
chunkParser ChunkParser
- orator extra.Orator
- asr extra.STT
- defaultLCPProps = map[string]float32{
+ //nolint:unused // TTS_ENABLED conditionally uses this
+ orator extra.Orator
+ asr extra.STT
+ defaultLCPProps = map[string]float32{
"temperature": 0.8,
"dry_multiplier": 0.0,
"min_p": 0.05,
@@ -272,6 +273,7 @@ func roleToIcon(role string) string {
return "<" + role + ">: "
}
+// FIXME: it should not be here; move to extra
func checkGame(role string, tv *tview.TextView) {
// Handle Cluedo game flow
// should go before form msg, since formmsg takes chatBody and makes ioreader out of it
@@ -283,8 +285,7 @@ func checkGame(role string, tv *tview.TextView) {
playerOrder = []string{cfg.UserRole, cfg.AssistantRole, cfg.CluedoRole2}
cluedoState = extra.CluedoPrepCards(playerOrder)
}
-
- notifyUser("got in cluedo", "yay")
+ // notifyUser("got in cluedo", "yay")
currentPlayer := playerOrder[0]
playerOrder = append(playerOrder[1:], currentPlayer) // Rotate turns
if role == cfg.UserRole {
@@ -296,7 +297,6 @@ func checkGame(role string, tv *tview.TextView) {
})
}
}
- return
}
func chatRound(userMsg, role string, tv *tview.TextView, regen, resume bool) {