]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
basics: UI command to send NOTICEs
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 28 Aug 2011 21:33:16 +0000 (23:33 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 28 Aug 2011 21:33:16 +0000 (23:33 +0200)
lib/rbot/core/basics.rb

index 24d45419ab310c8c9ccdd1628431bfc676f2de7d..0473028aceff3899813b029ea60bbd2370367e30 100644 (file)
@@ -103,6 +103,10 @@ class BasicsModule < CoreBotModule
     @bot.say param[:where], param[:what].to_s
   end
 
+  def bot_notify(m, param)
+    @bot.notice param[:where], param[:what].to_s
+  end
+
   def bot_action(m, param)
     @bot.action param[:where], param[:what].to_s
   end
@@ -211,6 +215,9 @@ basics.map "talk [in] [:where]",
 basics.map "say :where *what",
   :action => 'bot_say',
   :auth_path => 'talk::do'
+basics.map "notify :where *what",
+  :action => 'bot_notify',
+  :auth_path => 'talk::do'
 basics.map "action :where *what",
   :action => 'bot_action',
   :auth_path => 'talk::do'