diff --git a/src/listeners/client/ready.js b/src/listeners/client/ready.js index 71b7e4f..1982bad 100644 --- a/src/listeners/client/ready.js +++ b/src/listeners/client/ready.js @@ -47,7 +47,7 @@ module.exports = class extends Listener { await client.application.fetch(); 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.'); - } 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.'); } diff --git a/src/routes/api/admin/guilds/[guild]/problems.js b/src/routes/api/admin/guilds/[guild]/problems.js index 6a80953..0b15a5e 100644 --- a/src/routes/api/admin/guilds/[guild]/problems.js +++ b/src/routes/api/admin/guilds/[guild]/problems.js @@ -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' }); } }