This commit is contained in:
Flatlogic Bot 2026-02-16 16:08:24 +00:00
parent b1733995d3
commit 91498377d0
2 changed files with 14 additions and 1 deletions

4
bot.log Normal file
View File

@ -0,0 +1,4 @@
Logged in as AsepXiaoQin#6954
(node:4352) DeprecationWarning: The ready event has been renamed to clientReady to distinguish it from the gateway READY event and will only emit under that name in v15. Please use clientReady instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Successfully registered application commands.

View File

@ -122,10 +122,19 @@ $voiceId = get_setting('voice_channel_id');
<body>
<div class="container">
<?php
$bot_running = false;
$output = [];
exec("ps aux | grep 'node index.js' | grep -v grep", $output);
if (!empty($output)) {
$bot_running = true;
}
?>
<header class="d-flex justify-content-between align-items-center mb-4">
<h1>Alarm Sahur Bot</h1>
<div class="small text-muted">
<span class="status-dot"></span> System Standby
<span class="status-dot <?= $bot_running ? 'status-online' : '' ?>"></span>
<?= $bot_running ? 'Bot Online' : 'System Standby' ?>
</div>
</header>