mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-10 05:10:17 +00:00
commit
967aeeb3ff
@ -11,7 +11,11 @@ module.exports = {
|
||||
console.log('- Activated -');
|
||||
setInterval(async () => {
|
||||
client.guilds.forEach(guild => {
|
||||
client.db.collection('guilds').doc(guild.id).set(client.global.db.guilds[guild.id]);
|
||||
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,
|
||||
});
|
||||
});
|
||||
dbl.postStats(client.guilds.size);
|
||||
}, 1200000);
|
||||
|
3
index.js
3
index.js
@ -67,9 +67,6 @@ client.on('guildCreate', async (guild) => {
|
||||
const event = client.events.get(eventName) || client.events.find(ent => ent.aliases && ent.aliases.includes(eventName));
|
||||
event.execute(client, guild);
|
||||
});
|
||||
dbl.on('posted', () => {
|
||||
console.log('erver count posted!');
|
||||
})
|
||||
|
||||
dbl.on('error', error => {
|
||||
console.log(`Error with DBL! ${error}`);
|
||||
|
Loading…
Reference in New Issue
Block a user