diff options
author | Adam Di Carlo <adam@clotho.onshored.com> | 2008-06-11 14:31:56 -0500 |
---|---|---|
committer | dmitry kim <jason@nichego.net> | 2008-06-11 23:53:34 +0400 |
commit | 1371de4f0799590c5fc19889fef137acdc53a020 (patch) | |
tree | a4e0fe0d514617a68712e424229b4782b768b6f5 /data | |
parent | f7c5aadba0ab9642f8ec9685b1a2a0c9fd6781d8 (diff) |
help for eval and echo
Diffstat (limited to 'data')
-rw-r--r-- | data/rbot/plugins/script.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/script.rb b/data/rbot/plugins/script.rb index 2d730fe9..7a8c0c84 100644 --- a/data/rbot/plugins/script.rb +++ b/data/rbot/plugins/script.rb @@ -37,7 +37,7 @@ class ScriptPlugin < Plugin if topic == "add" "Scripts are little Ruby programs that run in the context of the script plugin. You can access @bot (class Irc::Bot), m (class Irc::PrivMessage), user (class String, either the first argument, or if missing the sourcenick), and args (class Array, an array of arguments). Example: 'script add greet m.reply( 'Hello ' + user )'. Invoke the script just like a plugin: '<botnick>: greet'." else - "Create mini plugins on IRC. 'script add <name> <code>' => Create script named <name> with the Ruby program <code>. 'script list' => Show a list of all known scripts. 'script show <name>' => Show the source code for <name>. 'script del <name>' => Delete the script <name>." + "Create mini plugins on IRC. 'script add <name> <code>' => Create script named <name> with the Ruby program <code>. 'script list' => Show a list of all known scripts. 'script show <name>' => Show the source code for <name>. 'script del <name>' => Delete the script <name>. 'script eval <expr>' => evaluate expression <expr>. 'script echo <expr>' => evaluate and display expression <expr>." end end |