32 lines
889 B
TypeScript
32 lines
889 B
TypeScript
import { TelegramTinderBot } from './src/bot';
|
|
|
|
/**
|
|
* Simple test to verify bot functionality
|
|
* Make sure to set up your .env file with proper TELEGRAM_BOT_TOKEN before running
|
|
*/
|
|
|
|
async function testBot() {
|
|
console.log('🤖 Starting Telegram Tinder Bot Test...');
|
|
|
|
try {
|
|
// Initialize bot
|
|
const bot = new TelegramTinderBot();
|
|
|
|
console.log('✅ Bot initialized successfully');
|
|
console.log('📱 Bot is ready to receive messages');
|
|
console.log('💬 Send /start to your bot in Telegram to begin');
|
|
|
|
// Note: In a real scenario, you would start the bot here
|
|
// await bot.start();
|
|
|
|
} catch (error) {
|
|
console.error('❌ Bot initialization failed:', error);
|
|
process.exit(1);
|
|
}
|
|
}
|
|
|
|
// Run test if this file is executed directly
|
|
if (require.main === module) {
|
|
testBot();
|
|
}
|