Skip to content

Commit 4d9b23d

Browse files
committed
Save local changes before rebase
1 parent 6d07a5d commit 4d9b23d

5 files changed

Lines changed: 52 additions & 0 deletions

File tree

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1+
<<<<<<< HEAD
12
node_modules/
3+
=======
4+
node_modules
5+
dist
6+
.env
7+
.DS_Store
8+
>>>>>>> a52bd76 (Initial commit with full auto-generated AlertPlexiBot worker)

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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

package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+
}

src/index.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
1+
<<<<<<< HEAD
12
export 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)

wrangler.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name = "alertplexibot-worker"
22
main = "src/index.js"
3+
<<<<<<< HEAD
34
compatibility_date = "2025-08-06"
45

56
kv_namespaces = [
@@ -18,3 +19,9 @@ ADMIN_CHAT_ID = "6496564814"
1819

1920
[triggers]
2021
routes = ["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)

0 commit comments

Comments
 (0)