life-todo

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

index.js (432B)


      1 require('dotenv').config();
      2 const { createBot } = require('./bot');
      3 
      4 const { TELEGRAM_BOT_TOKEN, ANTHROPIC_API_KEY } = process.env;
      5 
      6 if (!TELEGRAM_BOT_TOKEN) {
      7   console.error('ERROR: TELEGRAM_BOT_TOKEN is not set in .env');
      8   process.exit(1);
      9 }
     10 
     11 if (!ANTHROPIC_API_KEY) {
     12   console.error('ERROR: ANTHROPIC_API_KEY is not set in .env');
     13   process.exit(1);
     14 }
     15 
     16 console.log('Starting life-todo bot...');
     17 createBot(TELEGRAM_BOT_TOKEN);