You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
360 B
TypeScript

import dotenv from 'dotenv';
import { startBot } from './bot/bot';
import { startServer } from './server/server';
// Load environment variables
dotenv.config();
const PORT = 3000;
// Start the bot and server
async function main() {
await startBot();
startServer(PORT);
}
main().catch((error) => {
console.error('Error starting the bot:', error);
});