-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.example.py
More file actions
131 lines (99 loc) · 7.76 KB
/
config.example.py
File metadata and controls
131 lines (99 loc) · 7.76 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# ═══════════════════════════════════════════════════════════════
# 24xRaven Bot - Configuration File Example
# Developed by ✘ 𝙍𝘼𝙑𝙀𝙉
#
# GitHub: https://github.com/hsh34811-hash
# Telegram: @P_X_24
# Channel: https://t.me/Raven_xx24
#
# Copyright © 2026 ✘ 𝙍𝘼𝙑𝙀𝙉 - All Rights Reserved
# ═══════════════════════════════════════════════════════════════
"""
Configuration file for 24xRaven Telegram Bot
Instructions:
1. Copy this file and rename it to 'config.py'
2. Fill in your actual values
3. Never commit config.py to version control
"""
# ═══════════════════════════════════════════════════════════════
# Telegram Bot Configuration
# ═══════════════════════════════════════════════════════════════
# Get your bot token from @BotFather on Telegram
BOT_TOKEN = "YOUR_BOT_TOKEN_HERE"
# Your Telegram user ID (you can get it from @userinfobot)
OWNER_ID = 0 # Replace with your actual ID
# ═══════════════════════════════════════════════════════════════
# Hugging Face Configuration
# ═══════════════════════════════════════════════════════════════
# Get your token from https://huggingface.co/settings/tokens
HF_TOKEN = "YOUR_HUGGING_FACE_TOKEN_HERE"
# AI Model for image generation
MODEL_ID = "black-forest-labs/FLUX.1-schnell"
# ═══════════════════════════════════════════════════════════════
# Image Generation Settings
# ═══════════════════════════════════════════════════════════════
IMAGE_WIDTH = 1024
IMAGE_HEIGHT = 1024
GUIDANCE_SCALE = 7.5
NUM_INFERENCE_STEPS = 4
# ═══════════════════════════════════════════════════════════════
# Bot Behavior Settings
# ═══════════════════════════════════════════════════════════════
# Minimum prompt length for image generation
MIN_PROMPT_LENGTH = 8
# Request timeout in seconds
REQUEST_TIMEOUT = 7
# ═══════════════════════════════════════════════════════════════
# Database Settings
# ═══════════════════════════════════════════════════════════════
USERS_FILE = "users.json"
# ═══════════════════════════════════════════════════════════════
# API Endpoints
# ═══════════════════════════════════════════════════════════════
IP_API_URL = "http://ip-api.com/json/{target}"
# ═══════════════════════════════════════════════════════════════
# Messages Configuration (Optional Customization)
# ═══════════════════════════════════════════════════════════════
WELCOME_MESSAGE = """
╔══════════════════════════════════════════════════════════════╗
║ 24xRaven Telegram Bot ║
║ Developed by ✘ 𝙍𝘼𝙑𝙀𝙉 ║
╚══════════════════════════════════════════════════════════════╝
مرحباً بك في بوت 24xRaven
البوت الأقوى للخدمات الاحترافية
⚡ الميزات المتاحة:
━━━━━━━━━━━━━━━━━━━━
🎨 توليد صور بالذكاء الاصطناعي
📱 البحث المتقدم عن الأرقام
🌐 تحليل IP والدومينات
اختر الخدمة من القائمة أدناه ⬇️
"""
# ═══════════════════════════════════════════════════════════════
# Logging Configuration
# ═══════════════════════════════════════════════════════════════
LOG_LEVEL = "INFO" # DEBUG, INFO, WARNING, ERROR, CRITICAL
LOG_FILE = "bot.log"
# ═══════════════════════════════════════════════════════════════
# Feature Flags
# ═══════════════════════════════════════════════════════════════
ENABLE_IMAGE_GENERATION = True
ENABLE_PHONE_SEARCH = True
ENABLE_IP_ANALYSIS = True
ENABLE_USER_TRACKING = True
ENABLE_OWNER_NOTIFICATIONS = True
# ═══════════════════════════════════════════════════════════════
# Rate Limiting (Optional - for future implementation)
# ═══════════════════════════════════════════════════════════════
MAX_REQUESTS_PER_USER_PER_HOUR = 50
MAX_IMAGE_GENERATIONS_PER_DAY = 20
# ═══════════════════════════════════════════════════════════════
# Advanced Settings
# ═══════════════════════════════════════════════════════════════
# Threading settings
MAX_WORKER_THREADS = 5
# Cache settings
ENABLE_CACHE = False
CACHE_EXPIRY_SECONDS = 3600
# ═══════════════════════════════════════════════════════════════
# End of Configuration
# ═══════════════════════════════════════════════════════════════