V2
This commit is contained in:
parent
b1733995d3
commit
91498377d0
4
bot.log
Normal file
4
bot.log
Normal 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.
|
||||||
11
index.php
11
index.php
@ -122,10 +122,19 @@ $voiceId = get_setting('voice_channel_id');
|
|||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="container">
|
<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">
|
<header class="d-flex justify-content-between align-items-center mb-4">
|
||||||
<h1>Alarm Sahur Bot</h1>
|
<h1>Alarm Sahur Bot</h1>
|
||||||
<div class="small text-muted">
|
<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>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user