summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-08-28 23:33:16 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-08-28 23:33:16 +0200
commit2fc67aef47db1eb38a4a4251f7550633cc387674 (patch)
treecda1ef7eab5709e947ea6be60ddf41b3966fba73 /lib
parente64e9252e6b04de7de3509c2da2535bc3a18b280 (diff)
basics: UI command to send NOTICEs
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/core/basics.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/rbot/core/basics.rb b/lib/rbot/core/basics.rb
index 24d45419..0473028a 100644
--- a/lib/rbot/core/basics.rb
+++ b/lib/rbot/core/basics.rb
@@ -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'