mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-14 14:42:55 +01:00
🎨 do not automatically create default guild
This commit is contained in:
parent
8257e2631a
commit
d4b6840fae
@ -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] } } });
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user