2019-09-15 06:18:33 +00:00
|
|
|
module.exports = {
|
|
|
|
name: 'guildcreate',
|
|
|
|
async execute(client, guild) {
|
2019-10-10 13:43:04 +00:00
|
|
|
client.db.collection('guilds').doc(guild.id).set({
|
2019-10-11 08:48:50 +00:00
|
|
|
prefix: '>',
|
2019-10-10 13:43:04 +00:00
|
|
|
defaultVolume: 5,
|
2019-10-11 08:48:50 +00:00
|
|
|
permissions: false,
|
2019-10-12 15:01:13 +00:00
|
|
|
premium: false,
|
2019-10-13 07:33:59 +00:00
|
|
|
dj: false,
|
2019-10-24 17:11:08 +00:00
|
|
|
djrole: null,
|
|
|
|
startPlaying: true
|
2019-09-15 06:18:33 +00:00
|
|
|
});
|
2019-10-11 08:48:50 +00:00
|
|
|
client.global.db.guilds[guild.id] = {
|
|
|
|
prefix: ">",
|
2019-10-10 13:43:04 +00:00
|
|
|
defaultVolume: 5,
|
2019-10-11 08:48:50 +00:00
|
|
|
permissions: false,
|
2019-10-12 15:01:13 +00:00
|
|
|
premium: false,
|
2019-10-13 07:33:59 +00:00
|
|
|
dj: false,
|
2019-10-24 17:11:08 +00:00
|
|
|
djrole: null,
|
|
|
|
startPlaying: true
|
2019-10-10 13:43:04 +00:00
|
|
|
};
|
2019-09-15 06:18:33 +00:00
|
|
|
}
|
2019-10-10 13:43:04 +00:00
|
|
|
}
|