diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2014-04-22 05:14:40 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2014-04-22 05:14:40 -0700 |
commit | 1effce31316dff82452990123729791c6d3daf63 (patch) | |
tree | 47c0ada6f78afa213abe0c221614a497d17a825d | |
parent | d5b069b230c6714799c53456eff610adfbdba72d (diff) | |
download | dinobot-1effce31316dff82452990123729791c6d3daf63.tar.gz dinobot-1effce31316dff82452990123729791c6d3daf63.tar.xz |
Add more informative example.
-rw-r--r-- | example.rb | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |