changes
parent
defa87a039
commit
f923001a6f
|
@ -10,8 +10,10 @@ import * as commandFiles from './commands';
|
|||
import { Config } from '../types'; // eslint-disable-line
|
||||
|
||||
async function main(): Promise<void> {
|
||||
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'] });
|
||||
|
|
Loading…
Reference in New Issue