This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
help_system [2007/05/03 21:20]
Alreadythere created
help_system [2013/09/12 22:49] (current)
Line 1: Line 1:
 +====== Introduction ======
 +With bebot 0.3 the help is moved inside the modules offering the commands, and no longer kept in outside text files.
 +====== Adding help ======
 +To add help to a module you have to define an array //$help// inside the class. Best place for the definition is the constructor of the class. The array got 3 fields:
 +  - ''​$this -> help['​description'​] = '​Description of the module';''​ for a description shown in the top of the help window
 +  - ''​$this -> help['​command'​]['​command1'​]="​What does command1 do without any keywords";''​
 +  - ''​$this -> help['​command'​]['​command1 keyword'​] = "What does command1 do with keyword";''​
 +  - ''​$this -> help['​command'​]['​command2 keyword <​param>'​] = "What does command2 do with <​param>";''​
 +  - ''​$this -> help['​notes'​] = "Notes for the help goes in here.";''​ any kind of note related to the commands.
help_system.txt ยท Last modified: 2013/09/12 22:49 (external edit)
[unknown button type]
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki