summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/spotify.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/data/rbot/plugins/spotify.rb b/data/rbot/plugins/spotify.rb
index 95fe5842..29331c00 100644
--- a/data/rbot/plugins/spotify.rb
+++ b/data/rbot/plugins/spotify.rb
@@ -10,6 +10,14 @@
# 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