import requests
Browse filesimport time
from collections import Counter
from telegram import Bot
# Coloque o token do seu bot aqui
TELEGRAM_API_TOKEN = 'SEU_TOKEN_AQUI'
# Coloque o chat_id do usuário que vai receber as mensagens
TELEGRAM_CHAT_ID = 'SEU_CHAT_ID_AQUI'
bot = Bot(token=TELEGRAM_API_TOKEN)
def get_double_history():
url = "https://blaze.com/api/roulette_games/recent"
response = requests.get(url)
if response.status_code == 200:
return response.json()
else:
return []
def extract_colors(data):
colors = []
for game in data:
if 'color' in game:
colors.append(game['color'])
return colors
def predict_next_color(colors):
if not colors:
return None
count = Counter(colors)
most_common_color = count.most_common(1)[0][0]
return most_common_color
def send_signal(color):
message = f"Sinal Blaze Double: cor prevista para sair em 30 segundos -> {color}"
bot.send_message(chat_id=TELEGRAM_CHAT_ID, text=message)
print("Mensagem enviada pelo Telegram:", message)
def main():
while True:
history = get_double_history()
colors = extract_colors(history)
prediction = predict_next_color(colors)
if prediction:
print("Preparando para enviar sinal em 30 segundos...")
time.sleep(30)
send_signal(prediction)
else:
print("Nenhuma previsão possível no momento.")
time.sleep(30)
if __name__ == "__main__":
main()
- Initial Deployment
- README.md +6 -4
- index.html +254 -18
- prompts.txt +54 -0
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
title: 00dablaze
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
title: 00dablaze
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: green
|
| 5 |
+
colorTo: yellow
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
@@ -1,19 +1,255 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
</html>
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Blaze Double Predictor</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
|
| 9 |
+
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
|
| 10 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 11 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 12 |
+
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
| 13 |
+
<style>
|
| 14 |
+
.blaze-red {
|
| 15 |
+
background-color: #f43f5e;
|
| 16 |
+
}
|
| 17 |
+
.blaze-black {
|
| 18 |
+
background-color: #18181b;
|
| 19 |
+
}
|
| 20 |
+
.blaze-white {
|
| 21 |
+
background-color: #f4f4f5;
|
| 22 |
+
}
|
| 23 |
+
.pulse-animation {
|
| 24 |
+
animation: pulse 2s infinite;
|
| 25 |
+
}
|
| 26 |
+
@keyframes pulse {
|
| 27 |
+
0% {
|
| 28 |
+
transform: scale(0.95);
|
| 29 |
+
box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.7);
|
| 30 |
+
}
|
| 31 |
+
70% {
|
| 32 |
+
transform: scale(1);
|
| 33 |
+
box-shadow: 0 0 0 10px rgba(244, 63, 94, 0);
|
| 34 |
+
}
|
| 35 |
+
100% {
|
| 36 |
+
transform: scale(0.95);
|
| 37 |
+
box-shadow: 0 0 0 0 rgba(244, 63, 94, 0);
|
| 38 |
+
}
|
| 39 |
+
}
|
| 40 |
+
</style>
|
| 41 |
+
</head>
|
| 42 |
+
<body class="bg-gray-100">
|
| 43 |
+
<div class="min-h-screen">
|
| 44 |
+
<!-- Header -->
|
| 45 |
+
<header class="bg-white shadow-sm">
|
| 46 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4 flex justify-between items-center">
|
| 47 |
+
<div class="flex items-center space-x-2">
|
| 48 |
+
<div class="w-8 h-8 rounded-full blaze-red"></div>
|
| 49 |
+
<h1 class="text-xl font-bold text-gray-900">Blaze Predictor</h1>
|
| 50 |
+
</div>
|
| 51 |
+
<div class="flex items-center space-x-4">
|
| 52 |
+
<button class="px-4 py-2 bg-gray-800 text-white rounded-md hover:bg-gray-700 transition">
|
| 53 |
+
<i data-feather="settings" class="w-4 h-4 mr-2 inline"></i>
|
| 54 |
+
Settings
|
| 55 |
+
</button>
|
| 56 |
+
<button class="px-4 py-2 bg-red-600 text-white rounded-md hover:bg-red-700 transition">
|
| 57 |
+
<i data-feather="bell" class="w-4 h-4 mr-2 inline"></i>
|
| 58 |
+
Alerts
|
| 59 |
+
</button>
|
| 60 |
+
</div>
|
| 61 |
+
</div>
|
| 62 |
+
</header>
|
| 63 |
+
|
| 64 |
+
<!-- Main Content -->
|
| 65 |
+
<main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
|
| 66 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
| 67 |
+
<!-- Prediction Card -->
|
| 68 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden col-span-1 md:col-span-2" data-aos="fade-up">
|
| 69 |
+
<div class="p-6">
|
| 70 |
+
<div class="flex justify-between items-center mb-4">
|
| 71 |
+
<h2 class="text-lg font-semibold text-gray-900">Next Prediction</h2>
|
| 72 |
+
<span class="text-xs bg-gray-100 px-2 py-1 rounded-full text-gray-600">Updated 30s ago</span>
|
| 73 |
+
</div>
|
| 74 |
+
<div class="flex flex-col items-center justify-center py-8">
|
| 75 |
+
<div id="prediction-circle" class="w-32 h-32 rounded-full flex items-center justify-center text-white text-2xl font-bold mb-4 blaze-red pulse-animation">
|
| 76 |
+
RED
|
| 77 |
+
</div>
|
| 78 |
+
<p class="text-gray-600 mb-4">Next signal in: <span id="countdown" class="font-bold">30</span>s</p>
|
| 79 |
+
<button id="telegram-btn" class="px-6 py-2 bg-blue-500 text-white rounded-full hover:bg-blue-600 transition flex items-center">
|
| 80 |
+
<i data-feather="send" class="w-4 h-4 mr-2"></i>
|
| 81 |
+
Send to Telegram
|
| 82 |
+
</button>
|
| 83 |
+
</div>
|
| 84 |
+
</div>
|
| 85 |
+
</div>
|
| 86 |
+
|
| 87 |
+
<!-- Stats Card -->
|
| 88 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden" data-aos="fade-up" data-aos-delay="100">
|
| 89 |
+
<div class="p-6">
|
| 90 |
+
<h2 class="text-lg font-semibold text-gray-900 mb-4">Statistics</h2>
|
| 91 |
+
<div class="space-y-4">
|
| 92 |
+
<div>
|
| 93 |
+
<p class="text-sm text-gray-500">Last 10 Rounds</p>
|
| 94 |
+
<div class="flex space-x-1 mt-2">
|
| 95 |
+
<div class="w-6 h-6 rounded-full blaze-red"></div>
|
| 96 |
+
<div class="w-6 h-6 rounded-full blaze-red"></div>
|
| 97 |
+
<div class="w-6 h-6 rounded-full blaze-black"></div>
|
| 98 |
+
<div class="w-6 h-6 rounded-full blaze-white"></div>
|
| 99 |
+
<div class="w-6 h-6 rounded-full blaze-red"></div>
|
| 100 |
+
<div class="w-6 h-6 rounded-full blaze-black"></div>
|
| 101 |
+
<div class="w-6 h-6 rounded-full blaze-red"></div>
|
| 102 |
+
<div class="w-6 h-6 rounded-full blaze-red"></div>
|
| 103 |
+
<div class="w-6 h-6 rounded-full blaze-black"></div>
|
| 104 |
+
<div class="w-6 h-6 rounded-full blaze-red"></div>
|
| 105 |
+
</div>
|
| 106 |
+
</div>
|
| 107 |
+
<div>
|
| 108 |
+
<p class="text-sm text-gray-500">Color Distribution</p>
|
| 109 |
+
<div class="mt-2 h-40">
|
| 110 |
+
<canvas id="colorChart"></canvas>
|
| 111 |
+
</div>
|
| 112 |
+
</div>
|
| 113 |
+
<div class="grid grid-cols-3 gap-2 text-center">
|
| 114 |
+
<div class="p-2 bg-gray-50 rounded">
|
| 115 |
+
<p class="text-xs text-gray-500">Accuracy</p>
|
| 116 |
+
<p class="font-bold text-green-600">78%</p>
|
| 117 |
+
</div>
|
| 118 |
+
<div class="p-2 bg-gray-50 rounded">
|
| 119 |
+
<p class="text-xs text-gray-500">Red Hits</p>
|
| 120 |
+
<p class="font-bold text-red-600">62%</p>
|
| 121 |
+
</div>
|
| 122 |
+
<div class="p-2 bg-gray-50 rounded">
|
| 123 |
+
<p class="text-xs text-gray-500">Black Hits</p>
|
| 124 |
+
<p class="font-bold">24%</p>
|
| 125 |
+
</div>
|
| 126 |
+
</div>
|
| 127 |
+
</div>
|
| 128 |
+
</div>
|
| 129 |
+
</div>
|
| 130 |
+
|
| 131 |
+
<!-- History Card -->
|
| 132 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden col-span-1 md:col-span-3" data-aos="fade-up" data-aos-delay="200">
|
| 133 |
+
<div class="p-6">
|
| 134 |
+
<h2 class="text-lg font-semibold text-gray-900 mb-4">Recent Predictions</h2>
|
| 135 |
+
<div class="overflow-x-auto">
|
| 136 |
+
<table class="min-w-full divide-y divide-gray-200">
|
| 137 |
+
<thead class="bg-gray-50">
|
| 138 |
+
<tr>
|
| 139 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Time</th>
|
| 140 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Prediction</th>
|
| 141 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Result</th>
|
| 142 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
|
| 143 |
+
</tr>
|
| 144 |
+
</thead>
|
| 145 |
+
<tbody class="bg-white divide-y divide-gray-200">
|
| 146 |
+
<tr>
|
| 147 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2 min ago</td>
|
| 148 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 149 |
+
<span class="px-2 py-1 rounded-full text-white text-xs font-bold blaze-red">RED</span>
|
| 150 |
+
</td>
|
| 151 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 152 |
+
<span class="px-2 py-1 rounded-full text-white text-xs font-bold blaze-red">RED</span>
|
| 153 |
+
</td>
|
| 154 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 155 |
+
<span class="px-2 py-1 rounded-full bg-green-100 text-green-800 text-xs font-bold">HIT</span>
|
| 156 |
+
</td>
|
| 157 |
+
</tr>
|
| 158 |
+
<tr>
|
| 159 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">4 min ago</td>
|
| 160 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 161 |
+
<span class="px-2 py-1 rounded-full text-white text-xs font-bold blaze-black">BLACK</span>
|
| 162 |
+
</td>
|
| 163 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 164 |
+
<span class="px-2 py-1 rounded-full text-white text-xs font-bold blaze-red">RED</span>
|
| 165 |
+
</td>
|
| 166 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 167 |
+
<span class="px-2 py-1 rounded-full bg-red-100 text-red-800 text-xs font-bold">MISS</span>
|
| 168 |
+
</td>
|
| 169 |
+
</tr>
|
| 170 |
+
<tr>
|
| 171 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">6 min ago</td>
|
| 172 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 173 |
+
<span class="px-2 py-1 rounded-full text-white text-xs font-bold blaze-red">RED</span>
|
| 174 |
+
</td>
|
| 175 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 176 |
+
<span class="px-2 py-1 rounded-full text-white text-xs font-bold blaze-red">RED</span>
|
| 177 |
+
</td>
|
| 178 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
| 179 |
+
<span class="px-2 py-1 rounded-full bg-green-100 text-green-800 text-xs font-bold">HIT</span>
|
| 180 |
+
</td>
|
| 181 |
+
</tr>
|
| 182 |
+
</tbody>
|
| 183 |
+
</table>
|
| 184 |
+
</div>
|
| 185 |
+
</div>
|
| 186 |
+
</div>
|
| 187 |
+
</div>
|
| 188 |
+
</main>
|
| 189 |
+
</div>
|
| 190 |
+
|
| 191 |
+
<script>
|
| 192 |
+
AOS.init();
|
| 193 |
+
feather.replace();
|
| 194 |
+
|
| 195 |
+
// Initialize chart
|
| 196 |
+
const ctx = document.getElementById('colorChart').getContext('2d');
|
| 197 |
+
const colorChart = new Chart(ctx, {
|
| 198 |
+
type: 'doughnut',
|
| 199 |
+
data: {
|
| 200 |
+
labels: ['Red', 'Black', 'White'],
|
| 201 |
+
datasets: [{
|
| 202 |
+
data: [62, 24, 14],
|
| 203 |
+
backgroundColor: [
|
| 204 |
+
'#f43f5e',
|
| 205 |
+
'#18181b',
|
| 206 |
+
'#f4f4f5'
|
| 207 |
+
],
|
| 208 |
+
borderWidth: 0
|
| 209 |
+
}]
|
| 210 |
+
},
|
| 211 |
+
options: {
|
| 212 |
+
cutout: '70%',
|
| 213 |
+
plugins: {
|
| 214 |
+
legend: {
|
| 215 |
+
position: 'bottom',
|
| 216 |
+
labels: {
|
| 217 |
+
usePointStyle: true,
|
| 218 |
+
padding: 20
|
| 219 |
+
}
|
| 220 |
+
}
|
| 221 |
+
}
|
| 222 |
+
}
|
| 223 |
+
});
|
| 224 |
+
|
| 225 |
+
// Countdown timer
|
| 226 |
+
let seconds = 30;
|
| 227 |
+
const countdownElement = document.getElementById('countdown');
|
| 228 |
+
|
| 229 |
+
function updateCountdown() {
|
| 230 |
+
seconds--;
|
| 231 |
+
countdownElement.textContent = seconds;
|
| 232 |
+
|
| 233 |
+
if (seconds <= 0) {
|
| 234 |
+
seconds = 30;
|
| 235 |
+
// Simulate prediction change
|
| 236 |
+
const colors = ['blaze-red', 'blaze-black', 'blaze-white'];
|
| 237 |
+
const colorNames = ['RED', 'BLACK', 'WHITE'];
|
| 238 |
+
const randomIndex = Math.floor(Math.random() * colors.length);
|
| 239 |
+
|
| 240 |
+
const predictionCircle = document.getElementById('prediction-circle');
|
| 241 |
+
predictionCircle.className = `w-32 h-32 rounded-full flex items-center justify-center text-white text-2xl font-bold mb-4 ${colors[randomIndex]} pulse-animation`;
|
| 242 |
+
predictionCircle.textContent = colorNames[randomIndex];
|
| 243 |
+
}
|
| 244 |
+
}
|
| 245 |
+
|
| 246 |
+
setInterval(updateCountdown, 1000);
|
| 247 |
+
|
| 248 |
+
// Telegram button click
|
| 249 |
+
document.getElementById('telegram-btn').addEventListener('click', function() {
|
| 250 |
+
const prediction = document.getElementById('prediction-circle').textContent;
|
| 251 |
+
alert(`Signal "${prediction}" sent to Telegram!`);
|
| 252 |
+
});
|
| 253 |
+
</script>
|
| 254 |
+
</body>
|
| 255 |
</html>
|
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import requests
|
| 2 |
+
import time
|
| 3 |
+
from collections import Counter
|
| 4 |
+
from telegram import Bot
|
| 5 |
+
|
| 6 |
+
# Coloque o token do seu bot aqui
|
| 7 |
+
TELEGRAM_API_TOKEN = 'SEU_TOKEN_AQUI'
|
| 8 |
+
# Coloque o chat_id do usuário que vai receber as mensagens
|
| 9 |
+
TELEGRAM_CHAT_ID = 'SEU_CHAT_ID_AQUI'
|
| 10 |
+
|
| 11 |
+
bot = Bot(token=TELEGRAM_API_TOKEN)
|
| 12 |
+
|
| 13 |
+
def get_double_history():
|
| 14 |
+
url = "https://blaze.com/api/roulette_games/recent"
|
| 15 |
+
response = requests.get(url)
|
| 16 |
+
if response.status_code == 200:
|
| 17 |
+
return response.json()
|
| 18 |
+
else:
|
| 19 |
+
return []
|
| 20 |
+
|
| 21 |
+
def extract_colors(data):
|
| 22 |
+
colors = []
|
| 23 |
+
for game in data:
|
| 24 |
+
if 'color' in game:
|
| 25 |
+
colors.append(game['color'])
|
| 26 |
+
return colors
|
| 27 |
+
|
| 28 |
+
def predict_next_color(colors):
|
| 29 |
+
if not colors:
|
| 30 |
+
return None
|
| 31 |
+
count = Counter(colors)
|
| 32 |
+
most_common_color = count.most_common(1)[0][0]
|
| 33 |
+
return most_common_color
|
| 34 |
+
|
| 35 |
+
def send_signal(color):
|
| 36 |
+
message = f"Sinal Blaze Double: cor prevista para sair em 30 segundos -> {color}"
|
| 37 |
+
bot.send_message(chat_id=TELEGRAM_CHAT_ID, text=message)
|
| 38 |
+
print("Mensagem enviada pelo Telegram:", message)
|
| 39 |
+
|
| 40 |
+
def main():
|
| 41 |
+
while True:
|
| 42 |
+
history = get_double_history()
|
| 43 |
+
colors = extract_colors(history)
|
| 44 |
+
prediction = predict_next_color(colors)
|
| 45 |
+
if prediction:
|
| 46 |
+
print("Preparando para enviar sinal em 30 segundos...")
|
| 47 |
+
time.sleep(30)
|
| 48 |
+
send_signal(prediction)
|
| 49 |
+
else:
|
| 50 |
+
print("Nenhuma previsão possível no momento.")
|
| 51 |
+
time.sleep(30)
|
| 52 |
+
|
| 53 |
+
if __name__ == "__main__":
|
| 54 |
+
main()
|