diff --git a/src/main.ts b/src/main.ts index fb19c4b..2c453d1 100644 --- a/src/main.ts +++ b/src/main.ts @@ -10,8 +10,10 @@ import * as commandFiles from './commands'; import { Config } from '../types'; // eslint-disable-line async function main(): Promise { - sdNotify.ready(); - sdNotify.startWatchdogMode(2500); + if (process.env.PRODUCTION) { + sdNotify.ready(); + sdNotify.startWatchdogMode(2500); + } const read = await fs.readFile('../config.yaml', 'utf8'); const config: Config = parse(read); const client = new Client(config.token, { defaultImageFormat: 'png', restMode: true, intents: ['guildBans', 'guildEmojis', 'guildInvites', 'guildMembers', 'guildMessageReactions', 'guildMessages', 'guildPresences', 'guildWebhooks', 'guilds', 'directMessages'] });