03-10-2017, 09:11 PM
(This post was last modified: 03-17-2017, 05:34 AM by qwerasd205.)
Name - Description - Syntax
Type - Description - Syntax
Variable names are restricted to 0-9a-zA-Z_~!*-
Example commands:
Setting a constant variable for pi:
set !pi 3.14159
Setting a temporary variable that will be deleted after someone `get`s it:
set _myPassword ∆
Setting a dynamic variable that can be deleted after a few people see it, and then deleting it:
set ~dynamic ThisIsASecret
del ~dynamic
Setting and getting a password protected variable and then deleting it:
set #password123#varNameOfPassProtVar This is the value within the passport var.
unlock #varNameOfPassProtVar password123
del #varNameOfPassProtVar
Setting a read/write variable that anyone can modify and can't be deleted:
set MyVar
Getting a variable's value:
get MyVar
Finding out the date and time of creation of a variable (useful for finding out when a const will expire):
when ThisVariableName
Listing all variable names:
keys
Getting the link to this thread:
help
- set : sets <varName> to <value> : set <varName> <value>
- get : gets the value of <varName> : get <varName>
- keys : returns a list of all varNames : keys
- del : deletes <varName> if it's of type "dyn" : del <varName>
- unlock: `get` Pass <varName> using <password> : unlock <varName> <password>
- when : returns the time of creation for <varName> : when <varName>
- md2 : returns a b64 encoded md2 hash of <value>: md2 <value>
- lmgtfy: returns a link to a lmgtfy link for <query> : lmgtfy <query>
- help : returns a link to this thread : help
Type - Description - Syntax
- Temp : Temporary variable, deletes self upon `get` : _<varName>
- Const : Constant variable, deletes self after one day : !<varName>
- Dyn : Dynamic variable, able to be deleted with `del` : ~<varName>
- Pass : Password protected, only readable with unlock : #<password>#<varName>
Variable names are restricted to 0-9a-zA-Z_~!*-
Example commands:
Setting a constant variable for pi:
set !pi 3.14159
Setting a temporary variable that will be deleted after someone `get`s it:
set _myPassword ∆
Setting a dynamic variable that can be deleted after a few people see it, and then deleting it:
set ~dynamic ThisIsASecret
del ~dynamic
Setting and getting a password protected variable and then deleting it:
set #password123#varNameOfPassProtVar This is the value within the passport var.
unlock #varNameOfPassProtVar password123
del #varNameOfPassProtVar
Setting a read/write variable that anyone can modify and can't be deleted:
set MyVar
Getting a variable's value:
get MyVar
Finding out the date and time of creation of a variable (useful for finding out when a const will expire):
when ThisVariableName
Listing all variable names:
keys
Getting the link to this thread:
help