2019-09-15 06:18:33 +00:00
|
|
|
module.exports = {
|
|
|
|
name: 'guildcreate',
|
|
|
|
async execute(client, guild) {
|
2024-02-09 09:53:30 +00:00
|
|
|
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
|
|
|
|
};
|
|
|
|
}
|
2019-09-15 06:18:33 +00:00
|
|
|
}
|
2019-10-10 13:43:04 +00:00
|
|
|
}
|