]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/lastfm.rb
shortenurls plugin: handle failing services by trying other services, and make return...
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / lastfm.rb
index 8c562055b1857cc77522eeecaa1cf3fd23226047..8f25dd4fe6ab5621a1d27ed7221407b5387af252 100644 (file)
@@ -36,10 +36,10 @@ class ::LastFmEvent
 end
 
 class LastFmPlugin < Plugin
-  BotConfig.register BotConfigIntegerValue.new('lastfm.max_events',
+  Config.register Config::IntegerValue.new('lastfm.max_events',
     :default => 25, :validate => Proc.new{|v| v > 1},
     :desc => "Maximum number of events to display.")
-  BotConfig.register BotConfigIntegerValue.new('lastfm.default_events',
+  Config.register Config::IntegerValue.new('lastfm.default_events',
     :default => 3, :validate => Proc.new{|v| v > 1},
     :desc => "Default number of events to display.")