From d0968109073f109e52c7088075a0093f16ab05bb Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Sat, 12 Oct 2019 18:06:27 +0300 Subject: [PATCH] Update ready.js --- events/ready.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/events/ready.js b/events/ready.js index 93f1f8ed..36489ff1 100644 --- a/events/ready.js +++ b/events/ready.js @@ -2,9 +2,13 @@ module.exports = { name: 'ready', async execute(client, dbl) { const remoteMusixGuildsData = await client.funcs.dbget('guilds', null, client); + const remoteMusixPlaylistsData = await client.funcs.dbget('playlists', null, client); remoteMusixGuildsData.forEach(guildData => { client.global.db.guilds[guildData.id] = guildData.d; }); + remoteMusixPlaylistsData.forEach(guildData => { + client.global.db.playlists[guildData.id] = guildData.d; + }); console.log('- DB Set -'); client.user.setActivity(`@musix help | 🎶`, { type: 'LISTENING' }); client.user.setStatus('dnd');