summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Di Carlo <adam@clotho.onshored.com>2008-06-11 14:31:56 -0500
committerdmitry kim <jason@nichego.net>2008-06-11 23:53:34 +0400
commit1371de4f0799590c5fc19889fef137acdc53a020 (patch)
treea4e0fe0d514617a68712e424229b4782b768b6f5
parentf7c5aadba0ab9642f8ec9685b1a2a0c9fd6781d8 (diff)
help for eval and echo
-rw-r--r--data/rbot/plugins/script.rb2
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