Guichaguri / DiscordDJ

Discord DJ Bot. Play music in your server. Inspired by PlugDJ
http://guichaguri.github.io/DiscordDJ/
GNU Lesser General Public License v2.1
199 stars 50 forks source link

Playlist not working #37

Closed MattiSony closed 8 years ago

MattiSony commented 8 years ago

When trying to request a Youtube playlist nothing happens, this is what I get in the console:

Trying to connect...
Connected! Initializing the DJs...
PLAYLIST
Initializing DJ in "Matti"
Config saved!
PLAYLIST INIT
PLAYLIST COMMAND
A command threw an error (playlist): TypeError: Cannot read property 'keys' of undefined

My config(with tokens/keys replaced with ***):

{
    "email": "***",
    "password": "***",
    "token": "***",
    "djs": [
        {
            "server": "***",
            "voice-channel": "***",
            "rating": {
                "enabled": true,
                "min-votes": 3,
                "min-dislikes": 5
            },
            "chat-info": {
                "now-playing-prefix": "**Now Playing:** ",
                "song-history-channel": "***",
                "info-channel": "***"
            },
            "mode": {
                "type": "playlist",
                "playlists": []
            }
        }
    ],
    "keys": {
        "youtube": "***",
        "soundcloud": "***"
    },
    "commands": {
        "prefixes": [
            "!",
            "/"
        ]
    }
}
Guichaguri commented 8 years ago

Playlists were fixed in c0457dc53295ed02367dc1924014240c73c48ca8