init commit
This commit is contained in:
31
test-bot.ts
Normal file
31
test-bot.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
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();
|
||||
}
|
||||
Reference in New Issue
Block a user