aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-04-22 05:14:40 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-04-22 05:14:40 -0700
commit1effce31316dff82452990123729791c6d3daf63 (patch)
tree47c0ada6f78afa213abe0c221614a497d17a825d
parentd5b069b230c6714799c53456eff610adfbdba72d (diff)
downloaddinobot-1effce31316dff82452990123729791c6d3daf63.tar.gz
dinobot-1effce31316dff82452990123729791c6d3daf63.tar.xz
Add more informative example.
-rw-r--r--example.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/example.rb b/example.rb
index fe2b0ef..b52d4ab 100644
--- a/example.rb
+++ b/example.rb
@@ -5,7 +5,16 @@ require_relative 'dinobot'
bot = Dinobot::Bot.new('irc.example.org', 6667, 'dinobot') do
join '#dinobot'
+ load_module :admin
+ load_module :config
+ load_module :lastfm
load_module :test
+
+ @modules[:admin].add('dinobot.example.org')
+ @modules[:lastfm].setapikey('keyhere')
+
+ add_alias 'np', 'lastfm np'
+ add_alias 'song', 'lastfm song'
end
loop do