mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-10 11:20:19 +00:00
17 lines
768 B
JavaScript
17 lines
768 B
JavaScript
|
module.exports = async function (client) {
|
||
|
if (client.config.saveDB && !client.config.devMode) {
|
||
|
console.log('DB saved');
|
||
|
client.guilds.cache.forEach(guild => {
|
||
|
client.db.collection('guilds').doc(guild.id).set({
|
||
|
prefix: client.global.db.guilds[guild.id].prefix,
|
||
|
defaultVolume: client.global.db.guilds[guild.id].defaultVolume,
|
||
|
permissions: client.global.db.guilds[guild.id].permissions,
|
||
|
dj: client.global.db.guilds[guild.id].dj,
|
||
|
djrole: client.global.db.guilds[guild.id].djrole,
|
||
|
startPlaying: client.global.db.guilds[guild.id].startPlaying,
|
||
|
//bass: client.global.db.guilds[guild.id].bass,
|
||
|
});
|
||
|
});
|
||
|
}
|
||
|
}
|