diff --git a/config.default b/config.default index 824cfd1..1d0c4b5 100644 --- a/config.default +++ b/config.default @@ -30,7 +30,9 @@ "twitter_access_token": "", "twitter_access_secret": "", "wunderground": "", - "googletranslate": "" + "googletranslate": "", + "rdio_key": "", + "rdio_secret": "" }, "permissions": { "admins": { diff --git a/plugins/rdio.py b/plugins/rdio.py index 297c8f5..847c642 100644 --- a/plugins/rdio.py +++ b/plugins/rdio.py @@ -4,9 +4,9 @@ import re from util import hook import oauth2 as oauth - -CONSUMER_KEY = "KEY" -CONSUMER_SECRET = "SECRET" +bot.config.get("api_keys") +CONSUMER_KEY = conn.conf['api_keys'].get("rdio_key", "KEY") +CONSUMER_SECRET = conn.conf['api_keys'].get("rdio_secret", "SECRET") def getdata(inp, types):