Initial upload of the project in its first usable version
This commit is contained in:
20
src/index.ts
Normal file
20
src/index.ts
Normal file
@ -0,0 +1,20 @@
|
||||
import dotenv from 'dotenv';
|
||||
import { Bot } from '@/bot';
|
||||
import { Api } from '@/api';
|
||||
|
||||
/**
|
||||
* Configure dotenv.
|
||||
*/
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* OpenAI contained in API Module.
|
||||
*/
|
||||
const api = new Api();
|
||||
api.run();
|
||||
|
||||
/**
|
||||
* Discord contained in Bot Module.
|
||||
*/
|
||||
const bot = new Bot(api);
|
||||
bot.run();
|
Reference in New Issue
Block a user