1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-14 16:00:17 +00:00
musix-oss/src/struct/funcs/checkDB.js

25 lines
1.3 KiB
JavaScript
Raw Normal View History

2020-03-21 17:49:25 +00:00
module.exports = async function (client) {
2020-04-19 17:00:16 +00:00
client.guilds.cache.forEach((guild) => {
if (client.global.db.guilds[guild.id].prefix === undefined)
client.global.db.guilds[guild.id].prefix = client.config.prefix;
if (client.global.db.guilds[guild.id].defaultVolume === undefined)
client.global.db.guilds[guild.id].defaultVolume =
client.config.defaultVolume;
if (client.global.db.guilds[guild.id].permissions === undefined)
client.global.db.guilds[guild.id].permissions = client.config.permissions;
if (client.global.db.guilds[guild.id].dj === undefined)
client.global.db.guilds[guild.id].dj = client.config.dj;
if (client.global.db.guilds[guild.id].djrole === undefined)
client.global.db.guilds[guild.id].djrole = client.config.djrole;
if (client.global.db.guilds[guild.id].startPlaying === undefined)
client.global.db.guilds[guild.id].startPlaying =
client.config.startPlaying;
if (client.global.db.guilds[guild.id].bass === undefined)
client.global.db.guilds[guild.id].bass = client.config.bass;
if (client.global.db.guilds[guild.id].blacklsit === undefined)
client.global.db.guilds[guild.id].blacklist = [];
2020-04-19 17:34:38 +00:00
if (client.global.db.guilds[guild.id].premium === undefined)
client.global.db.guilds[guild.id].premium = false;
2020-04-19 17:00:16 +00:00
});
};