From d72094a68bc0f262a19766e843ae5126e87e2b6c Mon Sep 17 00:00:00 2001 From: Elijah R <62162399+elijahr2411@users.noreply.github.com> Date: Thu, 9 Mar 2023 15:42:10 -0500 Subject: [PATCH] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 217afe4..a12f99f 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,10 @@ var cvm = new CollabVMClient("wss://computernewb.com/collab-vm/vm0", "cvmsharpte await cvm.Connect(); // Send a chat await cvm.SendChat("What hath god wrought?"); +// Add a command +cvm.RegisterCommand("!test", (username, args) => { + Console.WriteLine($"You said {String.Join(", ", args)}, {username}!"); +}); // Queue a turn, wait until we get the turn await cvm.GetTurn(); // Type a string into the VM