-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstart.sh
More file actions
30 lines (25 loc) · 898 Bytes
/
Copy pathstart.sh
File metadata and controls
30 lines (25 loc) · 898 Bytes
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
#!/bin/bash
# PyroFork Forwarder Bot Startup Script
# This script handles the login process and then starts the forwarder bot
echo "🚀 Starting PyroFork Forwarder Bot..."
echo "====================================="
# Check if session file exists
SESSION_FILE=$(ls *.session 2>/dev/null | head -n 1)
if [ -n "$SESSION_FILE" ]; then
echo "📱 Session file found: $SESSION_FILE"
echo "⏭️ Skipping login process..."
echo "🤖 Starting forwarder bot directly..."
python forwarder.py
else
echo "📱 No session file found. Running login process..."
python login.py
# Check if login was successful
if [ $? -eq 0 ]; then
echo "✅ Login completed successfully!"
echo "🤖 Starting forwarder bot..."
python forwarder.py
else
echo "❌ Login failed. Please check your credentials and try again."
exit 1
fi
fi