mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-05 09:41:27 +03:00
fix: public bot warning condition
This commit is contained in:
@@ -47,7 +47,7 @@ module.exports = class extends Listener {
|
|||||||
await client.application.fetch();
|
await client.application.fetch();
|
||||||
if (process.env.PUBLIC_BOT === 'true' && !client.application.botPublic) {
|
if (process.env.PUBLIC_BOT === 'true' && !client.application.botPublic) {
|
||||||
client.log.warn('The `PUBLIC_BOT` environment variable is set to `true`, but the bot is not public.');
|
client.log.warn('The `PUBLIC_BOT` environment variable is set to `true`, but the bot is not public.');
|
||||||
} else if (process.env.PUBLIC_BOT === 'false' && client.application.botPublic) {
|
} else if (process.env.PUBLIC_BOT !== 'true' && client.application.botPublic) {
|
||||||
client.log.warn('Your bot is public, but public features are disabled. Set the `PUBLIC_BOT` environment variable to `true`, or make your bot private.');
|
client.log.warn('Your bot is public, but public features are disabled. Set the `PUBLIC_BOT` environment variable to `true`, or make your bot private.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -27,7 +27,7 @@ module.exports.get = fastify => ({
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (process.env.PUBLIC_BOT === 'false' && client.application.botPublic) {
|
if (process.env.PUBLIC_BOT !== 'true' && client.application.botPublic) {
|
||||||
problems.push({ id: 'botPublic' });
|
problems.push({ id: 'botPublic' });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user