3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-14 21:31:50 +00:00

Temporarily disable guild auto-leaving

This commit is contained in:
Dragory 2021-05-23 16:51:55 +03:00
parent f6be4f4af6
commit f19e365bf6
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -14,7 +14,8 @@ interface GuildAccessMonitorPluginType extends BasePluginType {
async function checkGuild(pluginData: GlobalPluginData<GuildAccessMonitorPluginType>, guild: Guild) {
if (!(await pluginData.state.allowedGuilds.isAllowed(guild.id))) {
console.log(`Non-allowed server ${guild.name} (${guild.id}), leaving`);
guild.leave();
console.log("[Temporarily not leaving automatically]");
// guild.leave();
}
}