1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-23 06:43:17 +00:00
musix-oss/events/guildcreate.js

22 lines
541 B
JavaScript
Raw Normal View History

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,
djrole: null
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,
djrole: null
2019-10-10 13:43:04 +00:00
};
2019-09-15 06:18:33 +00:00
}
2019-10-10 13:43:04 +00:00
}