1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 05:02:37 +01:00

🎨 do not automatically create default guild

This commit is contained in:
Flam3rboy 2021-10-14 21:25:17 +02:00
parent 4e6ffcbc4f
commit 5cc5ea3f04

View File

@ -10,9 +10,9 @@ export async function initInstance() {
if (autoJoin.enabled && !autoJoin.guilds?.length) { if (autoJoin.enabled && !autoJoin.guilds?.length) {
let guild = await Guild.findOne({}); let guild = await Guild.findOne({});
if (!guild) guild = await Guild.createGuild({}); if (guild) {
// @ts-ignore
// @ts-ignore await Config.set({ guild: { autoJoin: { guilds: [guild.id] } } });
await Config.set({ guild: { autoJoin: { guilds: [guild.id] } } }); }
} }
} }