1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-23 09:53:17 +00:00
This commit is contained in:
MatteZ02 2020-02-12 21:59:36 +02:00
parent f12ed4581d
commit d28e709b9d
2 changed files with 2 additions and 1 deletions

View File

@ -32,6 +32,7 @@ module.exports = {
console.log('- Activated -'); console.log('- Activated -');
setInterval(async () => { setInterval(async () => {
if (client.config.saveDB && !client.config.devMode) { if (client.config.saveDB && !client.config.devMode) {
console.log('DB saved');
client.guilds.forEach(guild => { client.guilds.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,

View File

@ -15,7 +15,7 @@ module.exports = {
embedColor: "#b50002", embedColor: "#b50002",
invite: "https://discordapp.com/api/oauth2/authorize?client_id=607266889537945605&permissions=3427328&redirect_uri=https%3A%2F%2Fdiscordapp.com%2Foauth2%2Fauthorize%3Fclient_id%3D607266889537945605%26%3Bscope%3Dbot%26%3Bpermissions%3D0&scope=bot", invite: "https://discordapp.com/api/oauth2/authorize?client_id=607266889537945605&permissions=3427328&redirect_uri=https%3A%2F%2Fdiscordapp.com%2Foauth2%2Fauthorize%3Fclient_id%3D607266889537945605%26%3Bscope%3Dbot%26%3Bpermissions%3D0&scope=bot",
//Settings //Settings
devMode: false, devMode: true,
dblApi: false, dblApi: false,
saveDB: false, saveDB: false,
//db values //db values