Skip to content

98_Hello.pm

Thomas Nesges edited this page Mar 1, 2017 · 1 revision

Hello

Hello implements the classical "Hello World" as a starting point for module development. You may want to copy 98_Hello.pm to start implementing a module of your very own. See DevelopmentModuleIntro for an in-depth instruction to your first module.

Define

define <name> Hello <greet>

Example: define HELLO Hello TurnUrRadioOn

The "greet" parameter has no further meaning, it just demonstrates how to set a so called "Internal" value. See commandref#define for more info about the define command.


Set

set <name> <option> <value>

You can set any value to any of the following options. They're just there to get them. See commandref#set for more info about the set command.

Options:

  • satisfaction
    Defaults to "no"
  • whatyouwant
    Defaults to "can't"
  • whatyouneed
    Defaults to "try sometimes"

Get

get <name> <option>

You can get the value of any of the options described in paragraph "Set" above. See commandref#get for more info about the get command.


Attributes

attr <name> <attribute> <value>

See commandref#attr for more info about the attr command.

Attributes:

  • formal no|yes
    When you set formal to "yes", all output of get will be in a more formal language. Default is "no".

Clone this wiki locally