File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <<<<<<< HEAD
12node_modules /
3+ =======
4+ node_modules
5+ dist
6+ .env
7+ .DS_Store
8+ >>>>>>> a52bd76 (Initial commit with full auto-generated AlertPlexiBot worker)
Original file line number Diff line number Diff line change 1+ # AlertPlexiBot Worker
2+
3+ This is a Telegram bot worker for emergency alert handling using Telegraf and Cloudflare Workers.
4+
5+ ## Commands
6+
7+ - /start
8+ - /help
9+ - /status
10+ - /confirm
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " alertplexibot-worker" ,
3+ "version" : " 1.0.0" ,
4+ "type" : " module" ,
5+ "main" : " src/index.js" ,
6+ "dependencies" : {
7+ "telegraf" : " ^4.12.2"
8+ }
9+ }
Original file line number Diff line number Diff line change 1+ < << << << HEAD
12export default {
23 async fetch ( request , env ) {
34 return new Response ( "AlertPlexiBot Worker placeholder." ) ;
45 }
56} ;
7+ === === =
8+ import { Telegraf } from "telegraf ";
9+
10+ const bot = new Telegraf ( BOT_TOKEN ) ;
11+
12+ bot . start ( ( ctx ) => ctx . reply ( 'Welcome to AlertPlexiBot! Use /help to see available commands.' ) ) ;
13+ bot . help ( ( ctx ) => ctx . reply ( 'Commands:\n/start - Start\n/help - Help\n/status - Show status\n/confirm - Confirm receipt' ) ) ;
14+
15+ bot . command ( 'status' , ( ctx ) => {
16+ ctx . reply ( '✅ All systems operational.' ) ;
17+ } ) ;
18+
19+ bot . command ( 'confirm' , ( ctx ) => {
20+ ctx . reply ( '📩 Confirmation received. Thank you.' ) ;
21+ } ) ;
22+
23+ bot . launch ( ) ;
24+ > >>> >>> a52bd76 ( Initial commit with full auto - generated AlertPlexiBot worker )
Original file line number Diff line number Diff line change 11name = " alertplexibot-worker"
22main = " src/index.js"
3+ <<<<<<< HEAD
34compatibility_date = " 2025-08-06"
45
56kv_namespaces = [
@@ -18,3 +19,9 @@ ADMIN_CHAT_ID = "6496564814"
1819
1920[triggers ]
2021routes = [" alertplexibot.neoncovenant.com/*" ]
22+ =======
23+ compatibility_date = " 2025-08-01"
24+ usage_model = " bundled"
25+ type = " javascript"
26+ workers_dev = true
27+ >>>>>>> a52bd76 (Initial commit with full auto-generated AlertPlexiBot worker)
You can’t perform that action at this time.
0 commit comments