mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-23 06:43:17 +00:00
Update saveDB.ts
This commit is contained in:
parent
7ece5cd91c
commit
f53bfd2745
@ -1,6 +1,6 @@
|
|||||||
module.exports = async function (client) {
|
module.exports = async function (client) {
|
||||||
if (client.config.saveDB && !client.config.devMode) {
|
if (client.config.saveDB && !client.config.devMode) {
|
||||||
console.log('DB saved');
|
//console.log('DB saved');
|
||||||
client.guilds.cache.forEach(guild => {
|
client.guilds.cache.forEach(guild => {
|
||||||
client.db.collection('guilds').doc(guild.id).set({
|
client.db.collection('guilds').doc(guild.id).set({
|
||||||
prefix: client.global.db.guilds[guild.id].prefix,
|
prefix: client.global.db.guilds[guild.id].prefix,
|
||||||
|
Loading…
Reference in New Issue
Block a user