From: Adam Di Carlo Date: Wed, 11 Jun 2008 19:31:56 +0000 (-0500) Subject: help for eval and echo X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=1371de4f0799590c5fc19889fef137acdc53a020;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git help for eval and echo --- 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: ': greet'." else - "Create mini plugins on IRC. 'script add ' => Create script named with the Ruby program . 'script list' => Show a list of all known scripts. 'script show ' => Show the source code for . 'script del ' => Delete the script ." + "Create mini plugins on IRC. 'script add ' => Create script named with the Ruby program . 'script list' => Show a list of all known scripts. 'script show ' => Show the source code for . 'script del ' => Delete the script . 'script eval ' => evaluate expression . 'script echo ' => evaluate and display expression ." end end