aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_use.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-05 06:03:49 -0400
committerhistoria <[not public]>2026-10-05 06:03:49 -0400
commitc84a9944356f590d90d819d652bdf1349ebacd40 (patch)
treeaf1ee15992e141fb3eb6f26cac02cf06306d4982 /internal/game/cmd_use.go
parent8b78aa4cd930fde145959704ba7bdc0e57465b9b (diff)
downloadthehouseoficarus-c84a9944356f590d90d819d652bdf1349ebacd40.tar.gz
feat: prediction exchange with live polymarket data
Diffstat (limited to 'internal/game/cmd_use.go')
-rw-r--r--internal/game/cmd_use.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/game/cmd_use.go b/internal/game/cmd_use.go
index 8c82f9c..54a36f5 100644
--- a/internal/game/cmd_use.go
+++ b/internal/game/cmd_use.go
@@ -29,7 +29,12 @@ func (g *Game) doUse(sess *net.Session, input string) {
return
}
- lower := strings.ToLower(input)
+ lower := strings.ToLower(strings.TrimSpace(input))
+
+ if predictionUseTarget(lower) && g.atPredictionCounter(p) {
+ g.openPredictionCounter(sess)
+ return
+ }
if lower == "bank" || lower == "bank booth" || strings.HasPrefix(lower, "bank ") {
g.doBank(sess)