knightrider/src/index.ts

15 lines
418 B
TypeScript
Raw Normal View History

2025-01-18 01:27:58 +00:00
require('dotenv').config({ path: __dirname + '/../.env' });
import { connect } from './database/index';
import { login } from './bot/index';
import updateSlashCommands from './updateSlashCommands';
import { start } from './site/index'
async function main(): Promise<void> {
await connect();
await login();
if (process.env.RELOADCMDS !== 'false') await updateSlashCommands();
await start();
2025-01-18 15:26:56 +00:00
}
main();