mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-22 21:13:18 +00:00
26 lines
774 B
JavaScript
26 lines
774 B
JavaScript
module.exports = {
|
|
name: 'guildcreate',
|
|
async execute(client, guild) {
|
|
if(client.config.firebase.serviceAccount){
|
|
client.db.collection('guilds').doc(guild.id).set({
|
|
prefix: client.config.prefix,
|
|
defaultVolume: 50,
|
|
permissions: false,
|
|
premium: false,
|
|
dj: false,
|
|
djrole: null,
|
|
startPlaying: true
|
|
});
|
|
client.global.db.guilds[guild.id] = {
|
|
prefix: client.config.prefix,
|
|
defaultVolume: 50,
|
|
permissions: false,
|
|
premium: false,
|
|
dj: false,
|
|
djrole: null,
|
|
startPlaying: true
|
|
};
|
|
}
|
|
}
|
|
}
|