learning_ai_invt_trdg/backend/test_alert.ts

16 lines
604 B
TypeScript

import { Notifier } from '../src/services/notifier.js';
import logger from '../src/utils/logger.js';
async function sendTest() {
const notifier = new Notifier();
const testMessage = "🔔 *Test Alert* 🔔\n\nThis is a manual test alert from your Trading Bot to verify the WhatsApp integration. If you are reading this, everything is working perfectly! 🚀";
logger.info('Sending manual test alert...');
await notifier.sendAlert(testMessage);
logger.info('Test alert process complete.');
}
sendTest().catch(err => {
logger.error('Test Alert Failed:', err);
});