about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2021-10-30T15·55-0400
committergrfn <grfn@gws.fyi>2021-10-30T17·16+0000
commit352c75630d8aecd2f5329af677281b7f018eebe3 (patch)
treeffaf65d2a9cbddb4c4e409ba0c55fff0a9bc26a6
parentaec85fd6b5106b5f88b148b2e740518b74449cf1 (diff)
feat(gs/xanthous): Send message when resting r/2993
Change-Id: Ib1e7ae6dfcbc2d2e86a28b401e67cd5dd22d6281
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3763
Reviewed-by: grfn <grfn@gws.fyi>
Tested-by: BuildkiteCI
-rw-r--r--users/grfn/xanthous/src/Xanthous/App.hs5
-rw-r--r--users/grfn/xanthous/src/Xanthous/messages.yaml1
2 files changed, 5 insertions, 1 deletions
diff --git a/users/grfn/xanthous/src/Xanthous/App.hs b/users/grfn/xanthous/src/Xanthous/App.hs
index 8c5cffc9f8..9558c17bcd 100644
--- a/users/grfn/xanthous/src/Xanthous/App.hs
+++ b/users/grfn/xanthous/src/Xanthous/App.hs
@@ -342,7 +342,10 @@ handleCommand (StartAutoMove dir) = do
   runAutocommand $ AutoMove dir
   continue
 
-handleCommand Rest = runAutocommand AutoRest >> continue
+handleCommand Rest = do
+  say_ ["autocommands", "resting"]
+  runAutocommand AutoRest
+  continue
 
 --
 
diff --git a/users/grfn/xanthous/src/Xanthous/messages.yaml b/users/grfn/xanthous/src/Xanthous/messages.yaml
index b50dc321fd..b264257433 100644
--- a/users/grfn/xanthous/src/Xanthous/messages.yaml
+++ b/users/grfn/xanthous/src/Xanthous/messages.yaml
@@ -128,6 +128,7 @@ drop:
 
 autocommands:
   enemyInSight: There's a {{firstEntity.creatureType.name}} nearby!
+  resting: Resting...
   doneResting: Done resting
 ###