1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-23 00:23:17 +00:00

Merge pull request #5 from MatteZ02/master

Base to Fork
This commit is contained in:
Christer Warén 2019-10-11 20:33:59 +03:00 committed by GitHub
commit 967aeeb3ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -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);

View File

@ -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}`);