{% extends "base.html" %}{% block title %}{{ bot.name }} — จัดการบอต{% endblock %}{% block content %}

แคชและสถานะคุกกี้

{% if bot.role == 'player' %}จัดการเพลงและคิว{% elif bot.role == 'manager' %}จัดการ Server Manager{% else %}ควบคุมเพลงและจัดการเซิร์ฟเวอร์{% endif %}

{{ bot.name }}

{% if created %}

สร้าง instance เรียบร้อยแล้ว

{% endif %} {% if user.role == 'superadmin' and bot.owner %}

เจ้าของเว็บ: {{ bot.owner.display_name or bot.owner.username }} ({{ bot.owner.username }}) | TeamTalk Admin ที่ใช้ยืนยัน: {{ bot.owner.teamtalk_admin_username or '-' }}

{% endif %}

{{ bot.role }} | {{ bot.nickname }} | Server {{ bot.server }} | ห้องตั้งต้น {{ bot.default_channel }}

Container: {% if bot.container %}{{ bot.container.status }} | image {{ bot.container.image }} | restart {{ bot.container.restart_count }} ครั้ง{% else %}ยังไม่มี container{% endif %}

{% if bot.container and bot.container.running %}{% else %}{% endif %}
{% if bot.role == 'manager' %}จัดการ Manager{% else %}จัดการเพลงและคิว{% endif %}

ดูบันทึก | แก้การตั้งค่าทั้งหมด

{% if user.role == 'superadmin' %}
ตรวจและกู้ค่าการเชื่อมต่อจาก backup

สำหรับกรณี config เสียหรือกลายเป็น CHANGE_ME ตรวจ backup ก่อน แล้วกู้เฉพาะค่าการเชื่อมต่อจาก backup ของบอตตัวนี้ ระบบจะไม่แสดงรหัสผ่าน และไม่กู้ทับ config ที่การเชื่อมต่อยังถูกต้อง

{% endif %}

สถานะสดจาก SNTalkBot

{% if not bot.container or not bot.container.running %}บอตหยุดอยู่ — ไม่มีข้อมูลสด{% elif bot.runtime %}{{ 'เชื่อมต่อ TeamTalk แล้ว' if bot.runtime.connected else 'ยังไม่เชื่อมต่อ TeamTalk' }}{% else %}กำลังรอข้อมูลสด{% endif %}

แหล่งข้อมูล
{{ bot.runtime.transport if bot.runtime else '-' }}
เวอร์ชัน
{{ bot.runtime.version if bot.runtime else '-' }}
ห้องปัจจุบัน
{% if bot.runtime %}{{ bot.runtime.channel.name or bot.runtime.channel.id or '-' }}{% else %}-{% endif %}
ผู้ใช้ในห้องปัจจุบัน
{% if bot.runtime and bot.runtime.room_users_online is not none %}{{ bot.runtime.room_users_online }}{% elif bot.runtime %}รอ SNTalkBot 5.1.2+{% else %}-{% endif %}
ผู้ใช้ทั้งเซิร์ฟเวอร์
{{ bot.runtime.server_users_online if bot.runtime and bot.runtime.server_users_online is not none else '-' }}
Administrator ที่ออนไลน์ทั้งเซิร์ฟเวอร์
{{ bot.runtime.admins_online_count if bot.runtime else '-' }}
Administrator ในห้องปัจจุบัน
{{ bot.runtime.admins_in_room_count if bot.runtime and bot.runtime.admins_in_room_count is not none else '-' }}
กำลังพูด
{{ bot.runtime.teamtalk_activity.speaking if bot.runtime else '-' }}
Media
{{ bot.runtime.teamtalk_activity.media if bot.runtime else '-' }}
Video
{{ bot.runtime.teamtalk_activity.video if bot.runtime else '-' }}
Desktop ในห้อง
{{ bot.runtime.teamtalk_activity.desktop if bot.runtime else '-' }}
กิจกรรมทั้งเซิร์ฟเวอร์
กำลังพูด
{{ bot.runtime.server_teamtalk_activity.speaking if bot.runtime and bot.runtime.server_teamtalk_activity else '-' }}
Media
{{ bot.runtime.server_teamtalk_activity.media if bot.runtime and bot.runtime.server_teamtalk_activity else '-' }}
Video
{{ bot.runtime.server_teamtalk_activity.video if bot.runtime and bot.runtime.server_teamtalk_activity else '-' }}
Desktop
{{ bot.runtime.server_teamtalk_activity.desktop if bot.runtime and bot.runtime.server_teamtalk_activity else '-' }}
ผู้ใช้ในห้องปัจจุบัน
    {% if bot.runtime and bot.runtime.room_users %}{% for u in bot.runtime.room_users %}
  • {{ u.nickname or u.username or '-' }}{% if u.username %} ({{ u.username }}){% endif %} — User ID {{ u.user_id }} — {{ 'Administrator' if u.account_type == 'administrator' else 'User' }}{% if u.client_name %} — Client {{ u.client_name }}{% endif %}{% if u.status_mode is not none %} — Status mode {{ u.status_mode }}{% endif %}{% if u.status_message %} — สถานะ: {{ u.status_message }}{% endif %}{% if u.state.speaking %} — กำลังพูด{% endif %}{% if u.state.media %} — Media{% endif %}{% if u.state.video %} — Video{% endif %}{% if u.state.desktop %} — Desktop{% endif %}
  • {% endfor %}{% else %}
  • ยังไม่พบผู้ใช้ในห้อง
  • {% endif %}
Server Administrator ที่ออนไลน์ — ไม่รวมบัญชีของบอตเองหรือทุก session ที่ใช้ username ของบอต
    {% if bot.runtime and bot.runtime.admins_online %}{% for a in bot.runtime.admins_online %}
  • {{ a.username }}{% if a.nickname %} — {{ a.nickname }}{% endif %} — User ID {{ a.user_id }}{% if a.in_bot_channel %} — อยู่ในห้องเดียวกับบอต{% elif a.channel_id %} — Channel ID {{ a.channel_id }}{% endif %}
  • {% endfor %}{% else %}
  • ยังไม่พบ
  • {% endif %}

Player

{% if bot.runtime and bot.runtime.player %}{{ 'กำลังเล่น' if bot.runtime.player.is_playing else 'ว่าง' }}: {{ bot.runtime.player.title or '-' }} | คิว {{ bot.runtime.player.queue_count }} | Q {{ 'ON' if bot.runtime.player.queue_mode else 'OFF' }} | M{{ bot.runtime.player.play_mode }} | Volume {{ bot.runtime.player.volume }} | Speed {{ bot.runtime.player.speed }}{% endif %}

ดูคิวเพลง
    {% if bot.runtime and bot.runtime.player and bot.runtime.player.queue %}{% for q in bot.runtime.player.queue %}
  1. {% if q.current %}กำลังเล่น: {% endif %}{{ q.title }}{% if q.added_by %} — เพิ่มโดย {{ q.added_by }}{% endif %}
  2. {% endfor %}{% endif %}

คิวว่าง

Manager

{% if bot.runtime and bot.runtime.manager %}Filter {{ 'ON' if bot.runtime.manager.filter else 'OFF' }} | CI {{ 'ON' if bot.runtime.manager.channel_input else 'OFF' }} | IC {{ 'ON' if bot.runtime.manager.intercept else 'OFF' }} | Commands {{ 'locked' if bot.runtime.manager.commands_locked else 'open' }}{% endif %}

ข้อจำกัด CPU/RAM

{% if bot.role != 'manager' %}

YouTube Cookies

{% endif %} {% if not bot.container or not bot.container.running %}

ลบ Instance

การลบใช้ได้เฉพาะเมื่อ instance หยุดแล้ว ระบบจะสำรอง config/data ไว้ก่อน แล้วจึงลบ instance ออกจากพื้นที่ใช้งาน

{% endif %} {% endblock %}