From c8b138c134fb547e12c2966e3088ba2753193504 Mon Sep 17 00:00:00 2001 From: Artem Chivchalov Date: Fri, 18 Nov 2016 09:45:02 +0300 Subject: [PATCH] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 02450b2..4ca5aa3 100644 --- a/README.md +++ b/README.md @@ -101,8 +101,11 @@ screeps cli The CLI server contains a JavaScript virtual machine allowing to run any valid JS code and work with inner server functions. They allow changing game objects and call procedures, including those added by you. Some examples of such commands: ``` +// Add an NPC bot to the map +bots.spawn('simplebot', 'W3N1'); + // Send a server message to all connected users -tools.sendServerMessage("OHAI"); +system.sendServerMessage("OHAI"); // Generate a new room and add it to the world map.generateRoom("E0N3", {sources: 4, terrainType: 2});