nice new update
This commit is contained in:
parent
e136522421
commit
666638c956
136 changed files with 4483 additions and 9190 deletions
15
src/index.ts
Normal file
15
src/index.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
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();
|
||||
}
|
||||
|
||||
main();
|
Loading…
Add table
Add a link
Reference in a new issue