{% extends "base.html" %}{% block title %}{{ bot.name }} — จัดการบอต{% endblock %}{% block content %}
สร้าง 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 user.role == 'superadmin' %}สำหรับกรณี config เสียหรือกลายเป็น CHANGE_ME ตรวจ backup ก่อน แล้วกู้เฉพาะค่าการเชื่อมต่อจาก backup ของบอตตัวนี้ ระบบจะไม่แสดงรหัสผ่าน และไม่กู้ทับ config ที่การเชื่อมต่อยังถูกต้อง
{% if not bot.container or not bot.container.running %}บอตหยุดอยู่ — ไม่มีข้อมูลสด{% elif bot.runtime %}{{ 'เชื่อมต่อ TeamTalk แล้ว' if bot.runtime.connected else 'ยังไม่เชื่อมต่อ TeamTalk' }}{% else %}กำลังรอข้อมูลสด{% endif %}
{% 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.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 %}
การลบใช้ได้เฉพาะเมื่อ instance หยุดแล้ว ระบบจะสำรอง config/data ไว้ก่อน แล้วจึงลบ instance ออกจากพื้นที่ใช้งาน
{% endif %} {% endblock %}