Update README.md

This commit is contained in:
Elijah R 2023-03-09 15:42:10 -05:00 committed by GitHub
parent c793b9f1d8
commit d72094a68b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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