]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/spotify.rb
[core] unicode plugin that sets server encoding
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / spotify.rb
index 95fe58424360b67b3f177ed15f30e7fce9f7bde1..29331c00ad94fc4d0f8656db0397c9964d78c327 100644 (file)
 # License:: GPL v2
 
 class SpotifyPlugin < Plugin
+  def initialize
+    super
+
+    unless Object.const_defined?('Spotify')
+      raise 'Spotify module not found (lib_spotify plugin probably not enabled)'
+    end
+  end
+
   def help(plugin, topic)
     _("spotify plugin - usage: spotify <spotify>, spotify artist <artist>, spotify album <album>")
   end