From 6d2c183ea13002f4182cf14beb0716fa2237bd2b Mon Sep 17 00:00:00 2001 From: drumfeet Date: Fri, 18 Oct 2024 17:00:05 +0200 Subject: [PATCH] fix: correcting typos --- src/tutorials/begin/messaging.md | 2 +- src/tutorials/bots-and-games/game-state.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tutorials/begin/messaging.md b/src/tutorials/begin/messaging.md index a15c729..515f95a 100644 --- a/src/tutorials/begin/messaging.md +++ b/src/tutorials/begin/messaging.md @@ -198,7 +198,7 @@ In the case of Morpheus, we can use tags to categorize our messages, and because ### Let's Show Morpheus That We're Ready -Send Morpheus a message with the tag `Action` and the value `rabbithole`. +Send Morpheus a message with the tag `Action` and the value `Unlock`. **Example:** diff --git a/src/tutorials/bots-and-games/game-state.md b/src/tutorials/bots-and-games/game-state.md index 6b78d6e..e8b9756 100644 --- a/src/tutorials/bots-and-games/game-state.md +++ b/src/tutorials/bots-and-games/game-state.md @@ -46,7 +46,7 @@ Let's define a new variable that stores the latest state as follows: LatestGameState = LatestGameState or nil ``` -The syntax preserves exisitng values of the variable when you load successive iterations of the `bot.lua` file in your terminal, instead of overwriting it. If there is no pre-existing value then a `nil` value is assigned to the variable. +The syntax preserves existing values of the variable when you load successive iterations of the `bot.lua` file in your terminal, instead of overwriting it. If there is no pre-existing value then a `nil` value is assigned to the variable. Then implement another handler as follows: @@ -54,7 +54,7 @@ Then implement another handler as follows: -- Handler to update the game state upon receiving game state information. Handlers.add( "UpdateGameState", - { Action = "Announcement" }, + { Action = "GameState" }, function (msg) local json = require("json") LatestGameState = json.decode(msg.Data) @@ -107,7 +107,7 @@ As usual, to test this new feature, load the file in your aos player terminal as .load bot.lua ``` -Then check the `LatestStateVariable` to see if it has updated correctly by simply passing its name as follows: +Then check the `LatestGameState` variable to see if it has updated correctly by simply passing its name as follows: ```lua LatestGameState