Forums - Open Redstone Engineers
Help Page for varBot - Printable Version

+- Forums - Open Redstone Engineers (https://forum.openredstone.org)
+-- Forum: Off-Topic (https://forum.openredstone.org/forum-4.html)
+--- Forum: Programming (https://forum.openredstone.org/forum-8.html)
+--- Thread: Help Page for varBot (/thread-11918.html)



Help Page for varBot - qwerasd205 - 03-10-2017

Name - Description - Syntax
  • 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
Variable types info:
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


RE: Help Page for varBot - Phase - 03-17-2017

Code:
let x = 7
would be cooler syntax


RE: Help Page for varBot - qwerasd205 - 03-17-2017

(03-17-2017, 05:09 AM)Phase Wrote:
Code:
let x = 7
would be cooler syntax

ew what, no, that's so gross for an irc bot command.


RE: Help Page for varBot - Apuly - 03-17-2017

(03-17-2017, 05:09 AM)Phase Wrote:
Code:
let x = 7
would be cooler syntax

what he said ^^


RE: Help Page for varBot - Nickster258 - 03-17-2017

(03-17-2017, 09:17 AM)Apuly Wrote:
(03-17-2017, 05:09 AM)Phase Wrote:
Code:
let x = 7
would be cooler syntax

what he said ^^

Inb4 "use var instead".


RE: Help Page for varBot - LambdaPI - 03-17-2017

var x = 7


RE: Help Page for varBot - qwerasd205 - 03-17-2017

I am disappoint.


RE: Help Page for varBot - Nickster258 - 03-17-2017

(03-17-2017, 04:38 PM)qwerasd205 Wrote: I am disappoint.

no, you are qwerasd205