mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-10 05:10:17 +00:00
18 lines
554 B
JavaScript
18 lines
554 B
JavaScript
module.exports = {
|
|
name: 'guildcreate',
|
|
async execute(client, guild) {
|
|
let members = 0;
|
|
client.guilds.forEach(x => members += x.memberCount); 'users: ' + client.users.size + ', guildMembers: ' + members;
|
|
client.db.collection('guilds').doc(guild.id).set({
|
|
musix_prefix: '>',
|
|
defaultVolume: 5,
|
|
permissions: true,
|
|
});
|
|
client.global.db.musix_guilds[guild.id] = {
|
|
musix_prefix: ">",
|
|
defaultVolume: 5,
|
|
permissions: true,
|
|
};
|
|
}
|
|
}
|