From 1effce31316dff82452990123729791c6d3daf63 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Tue, 22 Apr 2014 05:14:40 -0700 Subject: Add more informative example. --- example.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'example.rb') 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 -- cgit v1.2.3-70-g09d2