2020-02-05 20:02:53 +00:00
|
|
|
module.exports = {
|
|
|
|
name: 'guildcreate',
|
|
|
|
async execute(client, guild) {
|
|
|
|
client.db.collection('guilds').doc(guild.id).set({
|
|
|
|
prefix: client.config.prefix,
|
|
|
|
defaultVolume: client.config.defaultVolume,
|
|
|
|
permissions: client.config.permissions,
|
|
|
|
dj: client.config.dj,
|
|
|
|
djrole: client.config.djrole,
|
2020-02-20 20:32:27 +00:00
|
|
|
startPlaying: client.config.startPlaying,
|
2020-02-05 20:02:53 +00:00
|
|
|
});
|
|
|
|
client.global.db.guilds[guild.id] = {
|
|
|
|
prefix: client.config.prefix,
|
|
|
|
defaultVolume: client.config.defaultVolume,
|
|
|
|
permissions: client.config.permissions,
|
|
|
|
dj: client.config.dj,
|
|
|
|
djrole: client.config.djrole,
|
2020-02-20 20:32:27 +00:00
|
|
|
startPlaying: client.config.startPlaying,
|
2020-02-05 20:02:53 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|