Emilybot: Difference between revisions

From CRC
Created page with "== Commands == Commands can start either with "." or "$" === .add [name] [text] === Creates a new command called "name" with given text. If the command already exists, adds an empty line and appends the text. .add bots * Ema .add bots * IBM .add bots * Spoons Now .bots will output: * Ema * IBM * Spoons === .edit [name] [text] === Changes the text of a command == JavaScript execution == `$ [code]` will execute the code. Or if the code ''itself'' starts with..."
(No difference)

Revision as of 18:13, 26 September 2025

Commands

Commands can start either with "." or "$"

.add [name] [text]

Creates a new command called "name" with given text. If the command already exists, adds an empty line and appends the text.

.add bots * Ema
.add bots * IBM
.add bots * Spoons

Now .bots will output:

* Ema

* IBM

* Spoons

.edit [name] [text]

Changes the text of a command

JavaScript execution

`$ [code]` will execute the code. Or if the code itself starts with the `$` then you can just type `$code.blah.etc` and it will also work.