-
Notifications
You must be signed in to change notification settings - Fork 21
Commands
Xor commands are called this way:
<prefix><command_name_or_alias> [...arguments]
[input]
The <prefix>
should be either \
or >
.
Note that you cannot use custom prefixes as for now.
Also, the current two prefixes have their special meanings which will be clarified below.
Here’s an example of a simple command call:
\ping
Or one with arguments:
\sh whoami
Excluding the arguments, commands can accept longer content called inputs.
If the prefix you use is \
, the input will be all of your command message excluding the first line which includes the command trigger and the arguments. But if the prefix you use is >
, the input will be the text of the message which was replied.
To make this clearer, we can take a look at the built-in shell
command which takes use of the input you provide.
© 2022 Xor contributors. Licensed under Creative Commons.