-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
38 lines (33 loc) · 1.49 KB
/
Copy path.env.example
File metadata and controls
38 lines (33 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# ClaudePing Configuration
# ========================
#
# 1. Create a Telegram bot: message @BotFather on Telegram, send /newbot
# 2. Copy the bot token below
# 3. Message your bot (send /start), then get your chat ID:
# curl -s https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates | node -e "let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>console.log(JSON.parse(d).result[0].message.chat.id))"
# 4. Copy this file to .env and fill in the values:
# cp .env.example .env
# 5. Test: ./claudeping.sh --test
CLAUDEPING_BOT_TOKEN=your-bot-token-here
CLAUDEPING_CHAT_ID=your-chat-id-here
# Event Filtering (optional)
# Comma-separated list of events to notify on
# Default: Stop,Notification
# Available: Stop, Notification, SubagentStop
# CLAUDEPING_EVENTS=Stop,Notification
# Silent Notifications (optional)
# Set to "true" to send silent (no sound) notifications for specific events
# Default: all notifications make sound
# CLAUDEPING_SILENT_STOP=false
# CLAUDEPING_SILENT_NOTIFICATION=false
# CLAUDEPING_SILENT_SUBAGENTSTOP=false
# Two-Way Interaction (optional)
# Timeout in seconds for waiting for a Telegram response to questions
# Default: 1800 (30 minutes)
# CLAUDEPING_RESPONSE_TIMEOUT=1800
# Response Mode (optional)
# "notify" - Send notification to Telegram, answer in Claude Code (non-blocking)
# "interactive" - Send to Telegram with buttons, answer there (blocks Claude Code)
# Default: notify
# Toggle with: bash claudeping.sh --mode notify|interactive
# CLAUDEPING_MODE=notify